Label


Delete a Label

DELETE https://apis.wso2.com/api/am/admin/v0.16/labels/{labelId}

Delete a Label by label Id

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Path

labelId

required

Label UUID

String

Header

If-Match

optional

Validator for conditional requests; based on ETag (Will be supported in future).

String

Header

If-Unmodified-Since

optional

Validator for conditional requests; based on Last Modified header (Will be supported in future).

String

Responses

HTTP Code Description Schema

200

OK. Label successfully deleted.

404

Not Found. Label to be deleted does not exist.

Error

Update a Label

PUT https://apis.wso2.com/api/am/admin/v0.16/labels/{labelId}

Update a Label by label Id

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Path

labelId

required

Label UUID

String

Body

body

required

Label object with updated information

Label (Label)

Responses

HTTP Code Description Schema

200

OK. Label updated.

Label

400

Bad Request. Invalid request or validation error.

Error

404

Not Found. The resource to be updated does not exist.

Error

Add a Label

POST https://apis.wso2.com/api/am/admin/v0.16/labels

Add a new gateway Label

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Body

body

required

Label object that should to be added

Label (Label)

Responses

HTTP Code Description Schema

201

Created. Successful response with the newly created object as entity in the body.

Label

400

Bad Request. Invalid request or validation error

Error