Update an opportunity attribute
PUT /opportunity_attributes/{uuid}
/opportunity_attributes/{uuid}Changes the name, the description or the options of an opportunity attribute. Fields left out stay as they are. Values already stored on opportunities are not touched; renaming an option or the attribute changes how they read, not what is stored.
When to use: To rename an attribute, add, rename, recolor, reorder or archive options of an enum or multi_enum, or edit the description.
When not to use: The type, the public_code and the currency cannot be changed: create a new attribute instead. To stop using the attribute altogether, use archive_opportunity_attribute.
Side effects: Records the change in the account's attribute change log, under the person who made the call. No webhook is fired. Stage requirements that use the attribute are not affected.
Permissions: Requires a CRM seat and the crm.companies.attributes.manage capability. It is the same capability that manages company attributes.
Value for the X-Auth-Token header parameter.
In: header
Path Parameters
UUID of the opportunity attribute. Get it from list_opportunity_attributes.
The updated OpportunityAttribute resource
TypeScript Definitions
Use the request body type in TypeScript.
Opportunity attributes of the public API (plan fase 4, Task 20): the definitions of the custom fields of a opportunity, over AttributeDefinitionManager. Generated from the approved proposal by fase-4/tools/gen_opportunity_attributes.py and edited by hand afterwards: the texts are the proposal's.
Response Body
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
application/problem+json
curl -X PUT "https://api.easymailing.com/opportunity_attributes/3c7d1e84-6b29-4a05-9f13-d8e2a4b60c71" \ -H "X-Auth-Token: YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "version": 1, "name": "string", "description": "string", "options": [ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "label": "string", "color": "string", "status": "active", "integration_key": "string" } ] }'{ "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "name": "string", "description": "string", "public_code": "string", "type": "text", "currency": null, "status": "active", "position": 0, "version": 0, "current_value_count": 0, "ever_used": true, "options": [ { "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f", "label": "string", "color": "string", "integration_key": "string", "position": 0, "status": "active" } ]}