Saltar al contenido principal

Update Room

Request Example

curl -X PUT "https://openapi.onlive.site/api/v1/rooms/{publicId}" \
-H "Content-Type: application/json" \
-H "Authorization: ONLIVESITE Credential:ONLIVEAccessKeyId, Signature=CalculatedSignature" \
-d '{
"origin": "string",
"template": {
"name": "string",
"description": "string",
"mainImage": "string",
"duration": 0,
"assets": [
"string"
],
"actors": [
{
"name": "string",
"email": "string",
"role": "string",
"isAdmin": true,
"extraFields": [
{
"name": "string",
"value": {},
"type": "string",
"required": true
}
]
}
],
"products": [
"string"
],
"presetId": "string",
"adminUserEmail": "string",
"chatManagerUsersEmails": [
"string"
],
"discountCodes": [
{
"name": "string",
"description": "string",
"discountType": "string",
"duration": 0,
"percent": 0,
"discountCode": "string"
}
],
"notes": "string",
"labels": [
"string"
]
}
}'

Response Example

HTTP Status 200

{
"id": "string",
"publicId": "string",
"organizationId": "string",
"createdAt": "dateString",
"updatedAt": "dateString",
"template": {
"name": "string",
"description": "string",
"mainImage": "string",
"duration": 0,
"assets": ["string"],
"actors": [
{
"name": "string",
"email": "string",
"role": "string",
"isAdmin": true,
"extraFields": [
{
"name": "string",
"value": {},
"type": "string",
"required": true
}
]
}
],
"products": ["string"],
"presetId": "string",
"adminUserEmail": "string",
"chatManagerUsersEmails": ["string"],
"discountCodes": [
{
"name": "string",
"description": "string",
"discountType": "string",
"duration": 0,
"percent": 0,
"discountCode": "string"
}
],
"notes": "string",
"labels": ["string"]
}
}