# Update a context

URL: https://notifly.io/docs/api-reference/contexts/ContextsController_updateContext

> PATCH /v2/contexts/{type}/{id}. Update the data of an existing context. type and id are required fields, data is required. Only the data field is updated, the rest of the context is not affected. If the context does not exist, it…

`PATCH /v2/contexts/{type}/{id}`

Update the data of an existing context.
      **type** and **id** are required fields, **data** is required. Only the data field is updated, the rest of the context is not affected.
      If the context does not exist, it returns the 404 response
