PATCH /organizations/objects/{{objectName}}

PATCH /organizations/objects/

Change the name of a common resource at the organization level by passing a new objectName in the request body.  

If the common resource includes account or instance level fields, those are not changed by this request. This essentially splits the common resource where the renamed resource includes only the organization-level fields while the previous name includes only account or instance-level fields. Use PATCH /accounts/objects/ and PATCH /instances/objects/ to change the name of the common resource associated with the account and instance level fields.

Path Parameters

objectNameThe name of the common resource.

Header Parameters

Request Body Parameters

objectNameThe new name of the common resource.

Example Request

curl -X PATCH \
  'https://api-us.integrate.sugarapps.com/elements/api-v2/organizations/objects/' \
  -H 'Accept: application/json' \
  -H 'authorization: User sAfK7LJGNz5ZHcNrvdJvLI=f03WbTbH6aRKc0HJ3oOIi, Organization 58168435e3b9959a929eb04b6218b9a2' \ \
  -d '{
"objectName" : "newObjectName"
}'

Example Response

{  
  "id":69496,
  "objectName":"newObjectName",
  "fields":[  
    {  
      "type":"string",
      "path":"firstName"
    },
    {  
      "type":"string",
      "path":"lastName"
    }
  ],
  "level":"organization"
}