Sorry, no results found for "".
1PUT https://site-api.datocms.com/editing-sessions/:editing_session_id HTTP/1.12Authorization: Bearer YOUR-API-TOKEN3Accept: application/json4X-Api-Version: 35Content-Type: application/vnd.api+json6 7{8 "data": {9 "type": "editing_session_enter_item",10 "relationships": {11 "item": {12 "data": {13 "type": "item",14 "id": "hWl-mnkWRYmMCSTq4z_piQ"15 }16 }17 }18 }19}
1curl -g 'https://site-api.datocms.com/editing-sessions/:editing_session_id' \2 -X PUT \3 -H "Authorization: Bearer YOUR-API-TOKEN" \4 -H "Accept: application/json" \5 -H "X-Api-Version: 3" \6 -H "Content-Type: application/vnd.api+json" \7 --data-binary '{"data":{"type":"editing_session_enter_item","relationships":{"item":{"data":{"type":"item","id":"hWl-mnkWRYmMCSTq4z_piQ"}}}}}'
1await fetch(2 "https://site-api.datocms.com/editing-sessions/:editing_session_id",3 {4 method: "PUT",5 headers: {6 Authorization: "Bearer YOUR-API-TOKEN",7 Accept: "application/json",8 "X-Api-Version": "3",9 "Content-Type": "application/vnd.api+json",10 },11 body: JSON.stringify({12 data: {13 type: "editing_session_enter_item",14 relationships: {15 item: { data: { type: "item", id: "hWl-mnkWRYmMCSTq4z_piQ" } },16 },17 },18 }),19 },20);
1HTTP/1.1 200 OK2Content-Type: application/json3Cache-Control: cache-control: max-age=0, private, must-revalidate4X-RateLimit-Limit: 305X-RateLimit-Remaining: 286 7{8 "data": {9 "type": "editing_session",10 "id": "312",11 "attributes": {12 "last_activity_at": "2019-03-30T09:29:14.872Z",13 "locked_at": "2019-03-30T09:29:14.872Z"14 },15 "relationships": {16 "editor": {17 "data": {18 "type": "account",19 "id": "312"20 }21 },22 "active_item": {23 "data": {24 "type": "item",25 "id": "hWl-mnkWRYmMCSTq4z_piQ"26 }27 },28 "active_item_type": {29 "data": {30 "type": "item_type",31 "id": "DxMaW10UQiCmZcuuA-IkkA"32 }33 }34 }35 }36}