Skip to main content

Update Application

A través de este endpoint es posible actualizar los siguientes campos de una aplicación.

AtributteRequiredData TypeExample
namefalseStringapplication_1
descriptionfalseStringapplication from test
imgfalseStringhttps://google.com/.../googlelogo_color.png
img_circlefalseStringhttps://google.com/.../googlelogo_color.png
statusfalseBooleantrue

Endpoint#

Headers

KeyValueDescription
Content-Typeapplication/json
AuthorizationBearer {{access_token}}access_token obtained in Atenea

Url

Method: PUT
URL: https://api.trust.lat/company/api/v1/app/:app_id

Body

{
"name": "Trust",
"description": "This is a Trust app",
"img": "https://google.com/.../googlelogo.png",
"status": true
}
caution

Recuerda que para utilizar este endpoint es necesario un access token obtenido en el servicio Atenea

Como obtener un access token

Code Examples#

curl --location --request PUT 'https://api.trust.lat/company/api/v1/app/1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer {{accessToken}}' \
--data-raw '{
"name": "Trust",
"description": "This is a Trust app",
"img": "https://google.cl",
"status": true
}'

Responses#

HTTP Code: 200 Found#

{
"status": true,
"app": {
"id": 1,
"bundle_id": "com.trust.application_example_updated",
"company_id": 1,
"name": "applicacion_1",
"description": "application from test 1",
"created_at": "2021-07-09T16:48:12.828Z",
"updated_at": "2021-07-09T16:48:12.828Z",
"status": true,
"img": "https://google.cl",
"capabilities": [],
"flavor_id": "com.trust.application_example_updated",
"os": "android",
"client_uid": "",
"img_circle": "",
"generic_app": false,
"colour": ""
}
}

HTTP Code: 404 Not Found#

{
"status": false
}
Last updated on by Claudio-Franco