Create spot member custom role

POST /v1/spotMemberCustomRole

Create spot member custom role

application/json

Body Required

  • label string Required

    The label of the custom role.

  • description string

    The description of the custom role.

  • permissions array[string]

    The permissions of the custom role.

    Values are live.*, live.full.*, live.limited.*, moderation.*, spot.member.invite.*, course.limited.*, course.full.*, collection.full.*, or collection.limited.*.

Responses

  • 201 application/json

    Spot member custom role been successfully created

    Hide response attributes Show response attributes object
    • id string Required

      The id of the custom role.

    • label string Required

      The label of the custom role.

    • description string Required

      The description of the custom role.

    • permissions array[string] Required

      The permissions of the custom role.

      Values are live.*, live.full.*, live.limited.*, moderation.*, spot.member.invite.*, course.limited.*, course.full.*, collection.full.*, or collection.limited.*.

  • 400

    Malformed payload

POST /v1/spotMemberCustomRole
curl \
 --request POST 'https://openapi.meltingspot.io/v1/spotMemberCustomRole' \
 --header "Content-Type: application/json" \
 --data '{"label":"string","description":"string","permissions":["live.*"]}'
Request examples
{
  "label": "string",
  "description": "string",
  "permissions": [
    "live.*"
  ]
}
Response examples (201)
{
  "id": "string",
  "label": "string",
  "description": "string",
  "permissions": [
    "live.*"
  ]
}