Skip to content

Commit

Permalink
Updates for PTP events sub status codes
Browse files Browse the repository at this point in the history
  • Loading branch information
aireilly committed Nov 21, 2024
1 parent b9aed44 commit 5cf8bd2
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion modules/cnf-fast-event-notifications-api-reference-v2.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ Returns a list of subscriptions. If subscriptions exist, a `200 OK` status code
=== Description

Creates a new subscription for the required event by passing the appropriate payload.
If a subscription is successfully created, or if it already exists, a `201 Created` status code is returned.

You can subscribe to the following PTP events:

* `sync-state` events
Expand Down Expand Up @@ -140,6 +140,27 @@ You can subscribe to the following PTP events:
}
----

The following subscription status events are possible:

.PTP events REST API v2 subscription status codes
[cols="1,2", width="90%", options="header"]
|====
|Status code
|Description

|`201 Created`
|Indicates that the subscription is created

|`400 Bad Request`
|Indicates that the server could not process the request because it was malformed or invalid

|`404 Not Found`
|Indicates that the subscription resource is not available

|`409 Conflict`
|Indicates that the subscription already exists
|====

[discrete]
=== HTTP method

Expand Down

0 comments on commit 5cf8bd2

Please sign in to comment.