curl --request POST \
--url http://0.0.0.0:3000/v1/organizations/{id}/shares \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resource_type": "entity",
"resource_id": "light.sala",
"can_view": true,
"can_control": true,
"can_edit": false
}
'{
"id": 1,
"org_id": "org_abc123",
"resource_type": "entity",
"resource_id": "light.sala",
"can_view": true,
"can_control": true,
"can_edit": false
}curl --request POST \
--url http://0.0.0.0:3000/v1/organizations/{id}/shares \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"resource_type": "entity",
"resource_id": "light.sala",
"can_view": true,
"can_control": true,
"can_edit": false
}
'{
"id": 1,
"org_id": "org_abc123",
"resource_type": "entity",
"resource_id": "light.sala",
"can_view": true,
"can_control": true,
"can_edit": false
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
ID da organização
Share created