Skip to content

Assign or unassign providers for a service

Request

Security
BearerAuth
Path
idstringrequired

Service id.

Example:svc_123456
Bodyapplication/jsonrequired
assignArray of strings, <= 100 items

Provider (staff member) id(s) to assign to this service.

Example:
[ "provider_123456" ]
un_assignArray of strings, <= 100 items

Provider (staff member) id(s) to unassign from this service.

Example:
[ "provider_789012" ]
curl -i -X PUT \
  https://developer.setmore.com/api/v2/services/provider/svc_123456 \
  -H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
  -H 'Content-Type: application/json' \
  -d '{
    "assign": [
      "provider_123456"
    ],
    "un_assign": [
      "provider_789012"
    ]
  }'

Responses

Provider assignment updated.

Bodyapplication/json
dataobject(Service)

A service, as returned in API responses.

Response
{ "data": { "id": "svc_123456", "account_id": "acc_123456", "title": "30 min consultation", "provider_ids": [ … ], "type": "SERVICE", "max_seats": 10, "cost": 50, "duration": 30, "color_code": "#4287f5", "buffer": { … }, "visibility": "PUBLIC", "location": { … }, "category_ids": [ … ], "currency": "USD" } }