Collaborators

Create a collaborator

Endpoint

POST /v1/spaces/:space_id/collaborators

Parameters

Name Description
email required Email of the collaborator

Request

cURL

curl "https://api.storyblok.com/v1/spaces/585/collaborators" -d '{"email":"marta@leannon.org"}' -X POST \
	-H "Accept: application/json" \
	-H "Content-Type: application/json"
	-H "Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjo4MzEsInRpbWVzdGFtcCI6MTUzMjY4MDQ4Mn0.x1CsaA31v0EHnzBhtyUlrgeEqm_NKCMozm9AaGzsYt4" \

Response

Body

{
  "collaborator": {
    "role": "editor",
    "permissions": [

    ],
    "allowed_path": "",
    "field_permissions": "",
    "id": 133,
    "space_role_id": null,
    "user": {
      "userid": "marta@leannon.org",
      "email": "marta@leannon.org",
      "organization": null,
      "username": null,
      "use_username": false,
      "alt_email": null,
      "firstname": null,
      "lastname": null,
      "phone": null,
      "id": 832,
      "login_strategy": "password",
      "created_at": "2018-07-20T08:34:42.234Z"
    },
    "space_role": null
  }
}

Documentation