{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"**This endpoint allows you to update the status of a scheduled send for the given `batch_id`.**\n\nIf you have already set a `cancel` or `pause` status on a scheduled send using the \"Cancel or pause a scheduled send\" endpoint, you can update it's status using this endpoint. Attempting to update a status once it has been set with the \"Cancel or pause a scheduled send\" endpoint will result in a `400` error.","properties":{"path":{"type":"object","properties":{"batch_id":{"type":"string"}},"required":["batch_id"],"additionalProperties":false},"headers":{"type":"object","properties":{"on-behalf-of":{"type":"string","description":"The `on-behalf-of` header allows you to make API calls from a parent account on behalf of the parent's Subusers or customer accounts. You will use the parent account's API key when using this header. When making a call on behalf of a customer account, the property value should be \"account-id\" followed by the customer account's ID (e.g., `on-behalf-of: account-id <account-id>`). When making a call on behalf of a Subuser, the property value should be the Subuser's username (e.g., `on-behalf-of: <subuser-username>`). See [**On Behalf Of**](https://docs.sendgrid.com/api-reference/how-to-use-the-sendgrid-v3-api/on-behalf-of) for more information."}},"required":[],"additionalProperties":false},"body":{"type":"object","properties":{"status":{"allOf":[{"$ref":"#/definitions/Status1"},{"type":"string"}]}},"required":["status"],"examples":[{"status":"pause"}]}},"required":["path"],"additionalProperties":false,"definitions":{"Status1":{"type":"string","enum":["cancel","pause"]}}},"name":"Update a scheduled send","id":"sendgrid.scheduled_sends.updatescheduledsend","example":{"path":{"batch_id":"example"}},"maxRequests":1,"summary":false}}