Commit a search profile
PUT
jwtheader
AuthorizationBearer <JWT>profileId*stringMatch
^[a-z0-9]+(?:-[a-z0-9]+)*$Length
3 <= length <= 64rebuildMode?stringValue in
"auto""full""bypass"x-if-hash-match?stringapplication/json- body
id*stringMatch
^[a-z0-9]+(?:-[a-z0-9]+)*$Length
3 <= length <= 64name*stringLength
1 <= lengthdescription?stringsource*template*chunking*embedding*projections*array<>Default
[]indexes*array<>Default
[]application/json- response
id*stringMatch
^[a-z0-9]+(?:-[a-z0-9]+)*$Length
3 <= length <= 64name*stringLength
1 <= lengthdescription?stringsource*template*chunking*embedding*projections*array<>Default
[]indexes*array<>Default
[]_metaData*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" }}