Skip to main content

Update Systemic Tag Value

Endpoint utilizado para actualizar el valor de un tag sistémico en el servicio Index. Para que la petición sea considerada válida, es obligatorio entregar el valor de la variable de ruta tag_value_uuid.

Endpoint#

Headers

KeyValueDescription
Content-Typeapplication/json
AuthorizationBearer {{access_token}}access_token obtained in Atenea
Method: PUT
URL: https://api.trust.lat/index/v1/systemic_tag_value/:tag_value_uuid

Path Variables:

KeyValue ExampleDescription
tag_value_uuidffffffff-ffff-ffff-ffff-ffffffffffffIdentificador único del tag sistemico. Obligatorio
caution

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

Como obtener un access token

Body#

Fields#

  • name: Nombre del valor del tag sistémico. Opcional.
  • description: Breve explicación sobre el valor del tag sistémico. Opcional.
  • color: Código hexadecimal asociado a un color RGB, utilizado para representar al tag. Opcional.

Example#

{
"name": "Lucchezzi",
"description": "Empresa de fideos",
"color": "#FF0000"
}

Code Examples#

curl --location --request PUT 'https://api.trust.lat/index/v1/systemic_tag_value/ffffffff-ffff-ffff-ffff-ffffffffffff' \
--header 'Authorization: Bearer ************' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "Lucchezzi",
"description": "Empresa de fideos",
"color": "#0000FF"
}'

Responses#

HTTP Code: 200 OK#

Systemic Tag Value updated#

{
"code": 200,
"resource": "SystemicTagsValue",
"data": {
"color": "#0000FF",
"company_id": "99",
"created_at": "2021-07-08T21:38:42.800Z",
"description": "Empresa de fideos",
"name": "Lucchezzi",
"systemic_tag_name": "systemic_sub_company",
"updated_at": "2021-07-08T22:06:34.845Z",
"uuid": "ffffffff-ffff-ffff-ffff-ffffffffffff"
},
"message": "Updated"
}

HTTP Code: 404 Not Found#

Systemic Tag Value not present in Index Service#

{
"code": 404,
"resource": "SystemicTagsValue",
"message": "Not found"
}
Last updated on by Jesus Marquez Barrera