Mediation Policy (Individual)


Delete a global mediation policy

DELETE https://apis.wso2.com/api/am/admin/v0.16/policies/mediation/{mediationPolicyId}

This operation can be used to delete an existing global mediation policy providing the Id of the mediation policy.

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Path

mediationPolicyId

required

Mediation policy Id

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. Mediation policy successfully deleted.

403

Forbidden. The request must be conditional but no condition has been specified.

Error

404

Not Found. Resource to be deleted does not exist.

Error

412

Precondition Failed. The request has not been performed because one of the preconditions is not met.

Error

Get a global mediation policy

GET https://apis.wso2.com/api/am/admin/v0.16/policies/mediation/{mediationPolicyId}

This operation can be used to retrieve a particular global mediation policy.

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Path

mediationPolicyId

required

Mediation policy Id

String

Header

Accept

optional

Media types acceptable for the response. Default is application/json.

String

application/json

Header

If-None-Match

optional

Validator for conditional requests; based on the ETag of the formerly retrieved variant of the resource (Will be supported in future).

String

Header

If-Modified-Since

optional

Validator for conditional requests; based on Last Modified header of the formerly retrieved variant of the resource (Will be supported in future).

String

Responses

HTTP Code Description Schema

200

OK. Mediation Policy returned.

Mediation

304

Not Modified. Empty body because the client has already the latest version of the requested resource (Will be supported in future).

404

Not Found. Requested Document does not exist.

Error

406

Not Acceptable. The requested media type is not supported

Error

Update a global mediation policy

PUT https://apis.wso2.com/api/am/admin/v0.16/policies/mediation/{mediationPolicyId}

This operation can be used to update an existing global mediation policy.

OAuth 2.0 Scope

Not required

Examples

Parameters

Type Name Description Schema Default
Path

mediationPolicyId

required

Mediation policy Id

String

Body

body

required

Mediation policy object that needs to be added

Mediation (Mediation)

Header

Content-Type

required

Media type of the entity in the body. Default is application/json.

String

application/json

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. Successful response with updated mediation policy object

Mediation

400

Bad Request. Invalid request or validation error

Error

403

Forbidden. The request must be conditional but no condition has been specified.

Error

404

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

Error

412

Precondition Failed. The request has not been performed because one of the preconditions is not met.

Error