Skip to Content
Docs

Commit a search profile

PUT
/profiles/{profileId}

Authorization

jwt
headerAuthorizationBearer <JWT>

Path Parameters

profileId*string
Match^[a-z0-9]+(?:-[a-z0-9]+)*$
Length3 <= length <= 64

Query Parameters

rebuildMode?string
Value in"auto""full""bypass"

Header Parameters

x-if-hash-match?string

Request Body

application/json
  1. body
id*string
Match^[a-z0-9]+(?:-[a-z0-9]+)*$
Length3 <= length <= 64
name*string
Length1 <= length
description?string
source*
template*
chunking*
embedding*
projections*array<>
Default[]
indexes*array<>
Default[]

Response Body

application/json
  1. response
id*string
Match^[a-z0-9]+(?:-[a-z0-9]+)*$
Length3 <= length <= 64
name*string
Length1 <= length
description?string
source*
template*
chunking*
embedding*
projections*array<>
Default[]
indexes*array<>
Default[]
_metaData*
Example Request
curl -X PUT 'https://ai-search.your-tenant-id.my.contextual.io/api/v1/profiles/string' \  -H 'Content-Type: application/json' \  -d '{  "id": "string",  "name": "string",  "source": {    "kind": "native-object",    "objectType": "string"  },  "template": {    "language": "handlebars",    "body": "string"  },  "chunking": {    "splitterId": "plain-text-window",    "size": 1600,    "overlap": 10,    "preserveBoundaries": true  },  "embedding": {    "model": "voyage-4-lite",    "dimensions": 1024  },  "projections": [],  "indexes": []}'
Example Response
{  "id": "string",  "name": "string",  "description": "string",  "source": {    "kind": "native-object",    "objectType": "string",    "query": {      "property1": null,      "property2": null    }  },  "template": {    "language": "handlebars",    "header": "string",    "body": "string"  },  "chunking": {    "splitterId": "plain-text-window",    "size": 1600,    "overlap": 10,    "preserveBoundaries": true  },  "embedding": {    "model": "voyage-4-lite",    "dimensions": 1024  },  "projections": [],  "indexes": [],  "_metaData": {    "id": "string",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z",    "hash": "string"  }}