Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TELCODOCS-2113 - PTP events subscription status codes #85273

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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