Update Project
Update project with specified id.
Last updated
// No content// PATCH /api/v2/projects/951a951e-07de-457f-99c8-f1307fad4eeb
// Host: environment.monterosa.cloud
// Authorization: Bearer JmsmU5gZb6xNVUgQGoKcQLvQjRhKAUSb
// Content-Type: application/vnd.api+json
{
"data": {
"type": "projects",
"id": "951a951e-07de-457f-99c8-f1307fad4eeb",
"attributes": {
"name": "NEW Project Name"
}
}
}// Response: 204 No Contentcurl --request PATCH \
--url https://environment.monterosa.cloud/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"
}
}
}'curl --request PATCH \
--url https://environment.monterosa.cloud/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: 204 No Contentcurl --request PATCH \
--url https://environment.monterosa.cloud/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
}
}
]
}
}
}'curl --request PATCH \
--url https://environment.monterosa.cloud/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": {
"hidden_elements": [
{
"type": "vote",
"hidden": true
},
{
"type": "emote",
"hidden": false
}
]
}
}
}'// Response: 204 No Content --url https://environment.monterosa.cloud/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": {
"hidden_elements": [
{
"type": "vote",
"hidden": true
},
{
"type": "emote",
"hidden": false
}
]
}
}
}'curl -X PATCH https://environment.monterosa.cloud/api/v2/projects/a8e22ad3-b8b1-4fe2-a08a-45e5ba39df7d \
-d '{
"data": {
"type": "projects",
"id": "a8e22ad3-b8b1-4fe2-a08a-45e5ba39df7d",
"relationships": {
"app": {
"data": { "type": "apps", "id": "b9e22wd3-b8b1-4fe2-a08a-4ge5ba39df7d" }
}
}
}
}
'
// Response: 204 No Content