Skip to main content

Update a specific Embed

This endpoint updates a specific Embed

info

This operation requires authentication only if content_availability community option is false

HTTP Request

PUT /api/v2/embed/{id}/

Parameters

NameInTypeRequiredDescription
idpathstringtrueA unique integer value identifying this embed
» urlstring(uri)¦nullfalsenoneUrl for the resource, if any
» metadatajsonfalsenoneMetadata associated to this embed. It mus be a valid json object

Example Body Parameters

{
"url": "string(uri)",
"metadata": {}
}

Example Request

const inputBody = '{
"url": "https://example.com",
"metadata": {}
}';
const headers = {
'Content-Type':'application/json',
'Accept':'application/json',
'Authorization': 'Bearer {access_token}'
};

fetch('/api/v2/embed/{id}/',
{
method: 'PUT',
body: inputBody,
headers: headers
})
.then(function(res) {
return res.json();
}).then(function(body) {
console.log(body);
});

Responses

StatusMeaningDescriptionSchema
200OKResponse status codeUpdate Embed

Example responses

{
"id": "integer",
"embed_type": "string",
"embed_id": "string",
"url": "string(uri)",
"metadata": {}
}