{"command":{"effect":"write","timeoutSeconds":30,"inputSchema":{"type":"object","description":"You can create a data attributes for a `contact` or a `company`.\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},"body":{"$ref":"#/definitions/create_data_attribute_request","examples":[{"name":"Mithril Shirt","model":"company","data_type":"string"}]}},"required":[],"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"]},"create_data_attribute_request":{"description":"","type":"object","title":"Create Data Attribute Request","properties":{"name":{"type":"string","description":"The name of the data attribute.","examples":["My Data Attribute"]},"model":{"type":"string","description":"The model that the data attribute belongs to.","enum":["contact","company"],"examples":["contact"]},"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]}},"required":["name","model","data_type"],"oneOf":[{"properties":{"data_type":{"enum":["options"]},"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"},{"properties":{"data_type":{"enum":["string","integer","float","boolean","date"]}},"title":"other type"}]}}},"name":"Create a data attribute","id":"intercom.createdataattribute","example":{},"maxRequests":1,"summary":false}}