fieldMappings

Map Custom Field

post/field_mappings/map

Request body

attributeIdstring nullable required

The attribute ID

source_custom_field_idstring nullable required

The source custom field ID

source_providerstring nullable required

The source provider

linked_user_idstring nullable required

The linked user ID

Example request

{
  "attributeId": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "source_custom_field_id": "id_1",
  "source_provider": "hubspot",
  "linked_user_id": "801f9ede-c698-4e66-a7fc-48d19eebaa4f"
}

Response

id_attributestring nullable required

Attribute Id

statusstring nullable required

Attribute Status

ressource_owner_typestring nullable required

Attribute Ressource Owner Type

slugstring nullable required

Attribute Slug

descriptionstring nullable required

Attribute Description

data_type'string' | 'number' nullable required

Attribute Data Type

remote_idstring nullable required

Attribute Remote Id

sourcestring nullable required

Attribute Source

id_entitystring nullable required

Attribute Entity Id

id_projectstring nullable required

Attribute Project Id

scopestring nullable required

Attribute Scope

id_consumerstring nullable required

Attribute Consumer Id

created_atstring date-time nullable required

Attribute Created Date

modified_atstring date-time nullable required

Attribute Modified Date

Example response

{
  "id_attribute": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "slug": "fav_dish",
  "description": "My favorite dish",
  "data_type": "string",
  "remote_id": "id_1",
  "source": "hubspot",
  "id_entity": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "id_project": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "id_consumer": "801f9ede-c698-4e66-a7fc-48d19eebaa4f",
  "created_at": "2024-10-01T12:00:00Z",
  "modified_at": "2024-10-01T12:00:00Z"
}

Changes

Changed in 5 of the 18 revisions of this API.127

    • added the new number enum value to the data_type response property for the response status 201

      response-property-enum-value-added

    • added the new string enum value to the data_type response property for the response status 201

      response-property-enum-value-added

    This revision also has 1 change that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added

    This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 8 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • the request property attributeId became nullable

      request-property-became-nullable

    • the request property linked_user_id became nullable

      request-property-became-nullable

    • the request property source_custom_field_id became nullable

      request-property-became-nullable

    • the request property source_provider became nullable

      request-property-became-nullable

    • added the media type application/json for the response with the status 201

      response-media-type-added

    This revision also has 4 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog

    • endpoint added

      endpoint-added