Create a collaborator
Endpoint
POST /v1/spaces/:space_id/collaborators
Parameters
Name | Description |
---|---|
email required | Email of the collaborator |
Request
curl "https://api.storyblok.com/v1/spaces/652/collaborators" -d '{"email":"fidel_hoppe@feeney.com"}' -X POST \
-H "Accept: application/json" \
-H "Content-Type: application/json"
-H "Authorization: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2lkIjoxMDc0LCJ0aW1lc3RhbXAiOjE1NDI0Njg3OTN9.ddKv86VnsH0wg7bs4ZT10gc-IlOEpmjqscHOiHgp3nw" \
Response
{
"collaborator": {
"role": "editor",
"permissions": [
],
"allowed_path": "",
"field_permissions": "",
"id": 285,
"space_role_id": null,
"user": {
"userid": "fidel_hoppe@feeney.com",
"email": "fidel_hoppe@feeney.com",
"organization": null,
"username": null,
"use_username": false,
"alt_email": null,
"firstname": null,
"lastname": null,
"phone": null,
"id": 1075,
"login_strategy": "password",
"created_at": "2018-11-10T15:33:13.678Z",
"org_role": null,
"has_org": false
},
"space_role": null
}
}