{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"\nYou can update a data attribute.\n\n> \uD83D\uDEA7 Updating the data type is not possible\n>\n> It is currently a dangerous action to execute changing a data attribute's type via the API. You will need to update the type via the UI instead.\n\nYou can also send this request with `PATCH`; it behaves the same as `PUT`.\n\nRequires the `write_attributes` OAuth scope.\n","properties":{"headers":{"type":"object","properties":{"Intercom-Version":{"$ref":"#/definitions/intercom_version","enum":["2.17"]}},"required":[],"additionalProperties":false},"path":{"type":"object","properties":{"data_attribute_id":{"type":"integer","examples":[1],"description":"The data attribute id"}},"required":["data_attribute_id"],"additionalProperties":false},"body":{"$ref":"#/definitions/update_data_attribute_request","examples":[{"description":"Just a plain old ring","options":[{"value":"1-10"},{"value":"11-20"}],"archived":false}]}},"required":["path"],"additionalProperties":false,"definitions":{"intercom_version":{"description":"Intercom API version.</br>If you omit the header, the API uses the version set in your app package, and 1.0 if none is set.","type":"string","enum":["1.0","1.1","1.2","1.3","1.4","2.0","2.1","2.2","2.3","2.4","2.5","2.6","2.7","2.8","2.9","2.10","2.11","2.12","2.13","2.14","2.15","2.16","2.17"],"examples":["2.17"]},"update_data_attribute_request":{"description":"","type":"object","title":"Update Data Attribute Request","properties":{"archived":{"type":"boolean","description":"Whether the attribute is to be archived or not.","examples":[false]},"description":{"type":"string","description":"The readable description you see in the UI for the attribute.","examples":["My Data Attribute Description"]},"messenger_writable":{"type":"boolean","description":"Can this attribute be updated by the Messenger","examples":[false]}},"oneOf":[{"properties":{"options":{"type":"array","description":"Array of objects representing the options of the list, with `value` as the key and the option as the value. At least two options are required.","items":{"type":"object","properties":{"value":{"type":"string"}}},"examples":[[{"value":"1-10"},{"value":"11-50"}]]}},"required":["options"],"title":"list attribute"},{"title":"other type"}]}}},"name":"Update a data attribute","id":"intercom.updatedataattribute","example":{"path":{"data_attribute_id":1}},"maxRequests":1,"summary":false}}