A Provider manager can pause or resume an owned offer
Generated from the checked-in source. Do not edit this reference by hand.
PATCH /api/v1/providers/{provider}/offers/{offer}
Pausing prevents new admissions. Already dispatched requests may complete and accrue earnings. Viewers and unrelated operators cannot mutate offers.
Operation: setProviderOfferAvailability.
Authentication
Section titled “Authentication”Use the credential and permission scope described above. Each object below is an alternative; schemes within one object are required together.
[ { "operatorBearer": [] }]HTTP request
Section titled “HTTP request”Set NIU_ORIGIN to your installation origin (without /v1). Replace path, query and header placeholders with the required values. Query examples use curl 7.87 or newer to encode values with --url-query. Use the credential scope described above; a bearer token must have the authority required by this operation.
curl --fail-with-body -X PATCH "$NIU_ORIGIN/api/v1/providers/{provider}/offers/{offer}" \ -H "Authorization: Bearer $NIU_MEMBER_TOKEN" \ -H 'Content-Type: application/json' \ --data @request.jsonParameters
Section titled “Parameters”provider
Section titled “provider”Location: path. Required.
{ "type": "string", "format": "uuid"}Location: path. Required.
{ "type": "string", "format": "uuid"}Request body
Section titled “Request body”application/json
Section titled “application/json”Required.
{ "type": "object", "additionalProperties": false, "required": [ "active" ], "properties": { "active": { "type": "boolean" } }}Responses
Section titled “Responses”HTTP 200
Section titled “HTTP 200”Availability saved and audited
HTTP 404
Section titled “HTTP 404”No eligible Provider membership
HTTP 409
Section titled “HTTP 409”Offer unavailable in Provider scope
Behavior and supported scope
Section titled “Behavior and supported scope”Pausing prevents new admissions. Already dispatched requests may complete and accrue earnings. Viewers and unrelated operators cannot mutate offers.