Skip to content

Commit a2fe379

Browse files
#46 add stream exists behavior (#50)
* #46 add stream exists behavior * incorporates Atul and Shane's feedback * remove txt and html * update stream exists to 409 * Added 409 error description in the table Added error description in the table --------- Co-authored-by: Apoorva Deshpande <apps.desh@gmail.com>
1 parent 4e1f42e commit a2fe379

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

openid-sharedsignals-framework-1_0.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -869,6 +869,13 @@ an HTTP POST request to the Configuration Endpoint. On receiving a valid request
869869
the Event Transmitter responds with a "201 Created" response containing a
870870
[JSON][RFC7159] representation of the stream’s configuration in the body.
871871

872+
If a stream already exists, and the Transmitter allows multiple streams with the
873+
same Receiver, the Event Transmitter MUST respond with a new stream ID. If the
874+
Transmitter does not allow multiple streams with the same Receiver, it MUST respond
875+
respond with HTTP status code "409 Conflict". The Receiver MAY then GET the
876+
existing stream configuration and, if desired, use PATCH or PUT to update or
877+
replace the existing stream configuration.
878+
872879
The HTTP POST request MAY contain the Receiver-Supplied values of the Stream
873880
Configuration ({{stream-config}}) object:
874881

@@ -945,6 +952,7 @@ Errors are signaled with HTTP status codes as follows:
945952
| 400 | if the request cannot be parsed |
946953
| 401 | if authorization failed or it is missing |
947954
| 403 | if the Event Receiver is not allowed to create a stream |
955+
| 409 | if the transmitter does not support multiple streams per receiver |
948956
{: title="Create Stream Errors" #tablecreatestream}
949957

950958

0 commit comments

Comments
 (0)