Skip to main content
PATCH
/
api
/
v1
/
teams
/
{team_id}
/
hubs
/
{identifier}
/
policies
Update a hub TOS or privacy policy document
curl --request PATCH \
  --url https://api.member.dev/api/v1/teams/{team_id}/hubs/{identifier}/policies \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/vnd.api+json' \
  --data '
{
  "data": {
    "attributes": {
      "content": "<string>",
      "require_acceptance": false
    },
    "type": "<string>"
  }
}
'
{
  "data": {
    "attributes": {
      "enabled": true,
      "content": "<string>",
      "version": "<string>"
    },
    "id": "<string>",
    "type": "policies"
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

team_id
string
required
identifier
string
required

Body

application/vnd.api+json
data
PolicyUpdateResource · object
required

Response

Successful Response

JSON:API single-resource response for a hub policy.

data
PolicyResource · object
required

JSON:API resource object for a hub policy.