create new entry
POST /api/rest/admin/codec-groups
Parameters
Name |
Description |
data[type]
|
Resource type (codec-groups)
|
data[attributes][name]
|
Name
|
data[relationships][codecs]
|
Codecs
|
Request
Headers
Route
POST /api/rest/admin/codec-groups
Body
{"data":{"type":"codec-groups","attributes":{"name":"create-name"},"relationships":{"codecs":{"data":[{"type":"codec-group-codecs","id":102}]}}}}
Response
Headers
Status
201 Created
Body
{
"data": {
"id": "16",
"type": "codec-groups",
"links": {
"self": "http://example.org/api/rest/admin/codec-groups/16"
},
"attributes": {
"name": "create-name"
},
"relationships": {
"codecs": {
"links": {
"self": "http://example.org/api/rest/admin/codec-groups/16/relationships/codecs",
"related": "http://example.org/api/rest/admin/codec-groups/16/codecs"
}
}
}
}
}