Update Project

Update project with specified id.

patch
Update Project

https://environment.lvis.io/api/v2/projects/:project_id
Request
Response
Request
Path Parameters
project_id
required
string
Project ID.
Headers
Authorization
required
string
Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb
Content-Type
required
string
application/vnd.api+json
Body Parameters
name
optional
string
Project's name.
audio_sync_default_delay
optional
integer
Project's audio sync default delay.
audio_sync_max_delay
optional
integer
Project's audio sync max delay.
certification_enabled
optional
boolean
Defines if Certification is enabled for a project.
locales
optional
array
List of project locales.
settings
optional
array
App Setup settings.
Response
204: No Content
// No content

Example

Request
Response
cURL
Request
// PATCH /api/v2/projects/951a951e-07de-457f-99c8-f1307fad4eeb
// Host: environment.lvis.io
// Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb
// Content-Type: application/vnd.api+json
{
"data": {
"type": "projects",
"id": "951a951e-07de-457f-99c8-f1307fad4eeb",
"attributes": {
"name": "NEW Project Name"
}
}
}
Response
// Response: 204 No Content
cURL
curl --request PATCH \
--url https://environment.lvis.io/api/v2/projects/951a951e-07de-457f-99c8-f1307fad4eeb \
--header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "projects",
"id": "951a951e-07de-457f-99c8-f1307fad4eeb",
"attributes": {
"name": "NEW Project Name"
}
}
}'

App Setup settings

List of fields of App Setup. Each field is updated separately and if present its content is rewritten completely.

Request
Response
cURL
Request
curl --request PATCH \
--url https://environment.lvis.io/api/v2/projects/951a951e-07de-457f-99c8-f1307fad4eeb \
--header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "projects",
"id": "951a951e-07de-457f-99c8-f1307fad4eeb",
"attributes": {
"settings": [
{
"key": "logo",
"values": {
"all": "https://monterosa.com/img/logo.png"
}
},
{
"key": "language_selector_position",
"values": {
"all": "left"
}
},
{
"key": "text",
"values": {
"en": "Lorem ipsum dolor"
}
},
{
"key": "number",
"values": {
"all": 42
}
}
]
}
}
}'
Response
// Response: 204 No Content
cURL
--url https://environment.lvis.io/api/v2/projects/951a951e-07de-457f-99c8-f1307fad4eeb \
--header 'Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb' \
--header 'Content-Type: application/vnd.api+json' \
--data '{
"data": {
"type": "projects",
"id": "951a951e-07de-457f-99c8-f1307fad4eeb",
"attributes": {
"settings": [
{
"key": "logo",
"values": {
"all": "https://monterosa.com/img/logo.png"
}
},
{
"key": "language_selector_position",
"values": {
"all": "left"
}
},
{
"key": "text",
"values": {
"en": "Lorem ipsum dolor"
}
},
{
"key": "number",
"values": {
"all": 42
}
}
]
}
}
}'