Open API v2 / CRM & Orders / CRM Advanced Crm RestrictionGroupLayout

CRM Advanced Crm RestrictionGroupLayout

Every request needs a bearer token: Authorization: Bearer <token>. Base URL https://your-site.webinone.com. New to field types? See the type reference.

GET/api/v2/admin/advanced-crm-groups#

Retrieves a list of advanced crm groups by using a "where" filtering

Parameters
Wherestring · query
JSON filter expression. Combine operators ($eq, $contains, $gt, $in, …) with $and / $or.
Order_Bystring · query
Sort field. Prefix with - for descending; comma-separate for tie-breakers.
Semantic_Querystring · query
Natural-language search, ranked by relevance.
Min_Scorenumber · query
Lowest relevance score to include when using Semantic_Query.
Offsetinteger · query
Number of items to skip before returning results. Defaults to 0.
Limitinteger · query
Maximum number of items to return. Defaults to 100.
Response
Idstring · nullable
Unique identifier. Technical record number in the database. Read-only.
Namestring · nullable
Name of the advanced crm group.
Aliasstring · nullable
The Liquid reference that can be used to access this Properties value.
ApplyToTypesarray of enums
An array of strings that indicates which objects in CRM this group belongs to.
Propertiesarray of objects
Describes the configuration of specific fields (attributes) in your CRM group. Each object in the array is an instruction to the CMS on how to display and validate the field.
curl "https://your-site.webinone.com/api/v2/admin/advanced-crm-groups" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Items": [
    {
      "Id": "string",
      "Name": "Example",
      "Alias": "string",
      "ApplyToTypes": [
        "Contacts"
      ],
      "Properties": [
        {
          "Id": 1,
          "Name": "Example",
          "Type": "DateTime",
          "IsMandatory": false,
          "Options": [
            "string"
          ]
        }
      ]
    }
  ],
  "TotalItemsCount": 0
}
POST/api/v2/admin/advanced-crm-groups#

Creates a new advanced crm group

Body parameters
Namestringrequired
Name of the advanced crm group.
Aliasstringrequired
The Liquid reference that can be used to access this Properties value.
ApplyToTypesarray of enums
An array of strings that indicates which objects in CRM this group belongs to.
Response
Idstring · nullable
Unique identifier. Technical record number in the database. Read-only.
Namestring · nullable
Name of the advanced crm group.
Aliasstring · nullable
The Liquid reference that can be used to access this Properties value.
ApplyToTypesarray of enums
An array of strings that indicates which objects in CRM this group belongs to.
Propertiesarray of objects
Describes the configuration of specific fields (attributes) in your CRM group. Each object in the array is an instruction to the CMS on how to display and validate the field.
curl -X POST "https://your-site.webinone.com/api/v2/admin/advanced-crm-groups" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"Name":"Example","Alias":"string","ApplyToTypes":["Contacts"]}'
Response · 200
{
  "Id": "string",
  "Name": "Example",
  "Alias": "string",
  "ApplyToTypes": [
    "Contacts"
  ],
  "Properties": [
    {
      "Id": 1,
      "Name": "Example",
      "Type": "DateTime",
      "IsMandatory": false,
      "Options": [
        "string"
      ]
    }
  ]
}
GET/api/v2/admin/advanced-crm-groups/{id}#

Retrieves a single advanced crm group

Parameters
idinteger · pathrequired
Advanced crm group id.
Response
Idstring · nullable
Unique identifier. Technical record number in the database. Read-only.
Namestring · nullable
Name of the advanced crm group.
Aliasstring · nullable
The Liquid reference that can be used to access this Properties value.
ApplyToTypesarray of enums
An array of strings that indicates which objects in CRM this group belongs to.
Propertiesarray of objects
Describes the configuration of specific fields (attributes) in your CRM group. Each object in the array is an instruction to the CMS on how to display and validate the field.
curl "https://your-site.webinone.com/api/v2/admin/advanced-crm-groups/1" \
  -H "Authorization: Bearer <token>"
Response · 200
{
  "Id": "string",
  "Name": "Example",
  "Alias": "string",
  "ApplyToTypes": [
    "Contacts"
  ],
  "Properties": [
    {
      "Id": 1,
      "Name": "Example",
      "Type": "DateTime",
      "IsMandatory": false,
      "Options": [
        "string"
      ]
    }
  ]
}
PUT/api/v2/admin/advanced-crm-groups/{id}#

Updates an existing advanced crm group

Parameters
idinteger · pathrequired
Existent advanced crm group id.
Body parameters
Propertiesarray of objects
The fields (attributes) that make up this CRM group. Each entry defines how a field is displayed and validated.
Namestringrequired
Name of the advanced crm group.
Aliasstringrequired
The Liquid reference that can be used to access this Properties value.
ApplyToTypesarray of enums
An array of strings that indicates which objects in CRM this group belongs to.
Response
Idstring · nullable
Unique identifier. Technical record number in the database. Read-only.
Namestring · nullable
Name of the advanced crm group.
Aliasstring · nullable
The Liquid reference that can be used to access this Properties value.
ApplyToTypesarray of enums
An array of strings that indicates which objects in CRM this group belongs to.
Propertiesarray of objects
Describes the configuration of specific fields (attributes) in your CRM group. Each object in the array is an instruction to the CMS on how to display and validate the field.
curl -X PUT "https://your-site.webinone.com/api/v2/admin/advanced-crm-groups/1" \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{"Properties":[{"Id":1,"Name":"Example","Type":"DateTime","IsMandatory":false,"Options":["string"]}],"Name":"Example","Alias":"string","ApplyToTypes":["Contacts"]}'
Response · 200
{
  "Id": "string",
  "Name": "Example",
  "Alias": "string",
  "ApplyToTypes": [
    "Contacts"
  ],
  "Properties": [
    {
      "Id": 1,
      "Name": "Example",
      "Type": "DateTime",
      "IsMandatory": false,
      "Options": [
        "string"
      ]
    }
  ]
}
DELETE/api/v2/admin/advanced-crm-groups/{id}#

Deletes an existing advanced crm group

Parameters
idinteger · pathrequired
Existent advanced crm group id.
curl -X DELETE "https://your-site.webinone.com/api/v2/admin/advanced-crm-groups/1" \
  -H "Authorization: Bearer <token>"
GET/api/v2/admin/advanced-crm-groups/field-types#

Retrieves a list of advanced crm group field types

Response
curl "https://your-site.webinone.com/api/v2/admin/advanced-crm-groups/field-types" \
  -H "Authorization: Bearer <token>"
Response · 200
[
  "string"
]
GET/api/v2/admin/advanced-crm-groups/types#

Retrieves a list of advanced crm group types

Response
DisplayNamestring · nullable
Display name of the advanced crm group type, shown to users.
Valuestring · nullable
The technical key of the object type this group can be applied to (for example Contacts or Order).
curl "https://your-site.webinone.com/api/v2/admin/advanced-crm-groups/types" \
  -H "Authorization: Bearer <token>"
Response · 200
[
  {
    "DisplayName": "Example",
    "Value": "string"
  }
]