Bulk Update Event

This endpoint updates multiple Event fields for multiple Events.

Request

To update one or more specific attributes of many Event(s) please make a PATCH request to the following URL:

HTTP MethodURL
PATCHhttps://industrial.api.ubidots.com/api/v2.0/events/_/bulk/update

Query Parameters

ParameterTypeUseDescription
tokenStringAuthenticationAuthentication Token can optionally be sent as a query parameter.

Body Parameters

ParameterTypeRequired?Default ValueDescription
labelStringYesN/A (required)API label of Event
nameStringNoSame as labelName of Event
descriptionStringNo""Description of Event
tagsString ArrayNo[]Tags of Event
organization<organization_key>NonullKey of Organization (Id or Label)
triggersArray of Object ArrayYesN/A (required)Triggers of Event
actionsObject ArrayYesN/A (required)Actions of Event
isActiveBooleanNoTrueIs True when Event is active
activeDatesObjectYesN/A (required)All Active Dates of Event
isGlobalEventBooleanNoFalseTrue if Event is a global event

Header

ParameterTypeDescription
X-Auth-TokenStringAuthentication Token of account
X-Bulk-OperationBooleanNeed to be set to True for the bulk operation to work
Content-TypeString (application/json)Content type of bod
curl -X PATCH 'https://industrial.api.ubidots.com/api/v2.0/events/_/bulk/update/' \
 -H 'Content-Type: application/json' \
 -H 'X-Auth-Token: oaXBo6ODhIjPsusNRPUGIK4d72bc73' \
 -d '[
  {
    "id": "409dba9c67d3bb19f554",
    "label": "Event 1"
  },
  ...
  {
    "id": "445da83878abc3c75756",
    "label": "Event 4"
  },
]'
{
  "task": {
    "id": "tyg54645501a9ca5714e7b098721"
  }
}
{
    "code": 400001,
    "message": "Validation Error.",
    "detail": {
        ....
    }
}
{
    "code": 401001,
    "message": "Authentication credentials were not provided.",
    "detail": "Authentication credentials were not provided."
}
{
    "detail": "Header `X-BULK-OPERATION` should be provided for bulk operation."
}

Response

Returns an Event object of the Bulk Event updated.