Update a profile
In the Esign Comply API, POST /v1/profiles/{id} or PATCH /v1/profiles/{id} merges the fields you send into the latest version of a profile, writes a new version and returns it. Use it to enable or remove a pack or change a setting, while earlier sessions and records keep their pinned version.
POST /v1/profiles/{id} or PATCH /v1/profiles/{id} · API version 2026-11-21
Authentication
Send a secret key in the Authorization header: Bearer $ESIGNCOMPLY_API_KEY. The key needs full_access permission. Test keys and live keys both work, and each reads and writes the objects of its own environment. Call it from your server: a secret key never goes to a browser. Keys and permissions are described under Authentication.
Request example
cURL
curl https://esigncomply.com/v1/profiles/prof_signup_4f1a \
-H "Authorization: Bearer $ESIGNCOMPLY_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"jurisdictions": [
"US-FED",
"US-CA",
"US-NY"
],
"change_note": "Enabled New York."
}'
This request ran against the API on November 26, 2026, and the response below is what came back. IDs are example values, and long values are shortened with ....
What it does
Send only the fields you want to change. The API merges them with the latest version, validates the result as on create, and writes a new version. Sessions and records created earlier keep the version they pinned.
The plan check runs on the level the new version would have, whether or not the request names assurance_level. On Free and Starter, any update to a profile that is at L2 or L3 returns 403 plan_feature_unavailable unless the same request sets "assurance_level": "L1".
- Adding a pack needs no code change to keep recording. The pack's obligations, recommendations and notices apply at once. Its record conditions start in advise and appear in
pending_conditionsuntil you adopt them. - Removing a pack never causes an error. A session whose signer is in that state, or that names the pack, proceeds under the remaining packs with the warning
jurisdiction_not_enabled:<code>, unlessstrict_jurisdictionsistrue. - The baseline does not change on update. Only adoption and rollback change it.
The body is the profile object at its new version.
Parameters
| Name | In | Type | Required | Description |
|---|---|---|---|---|
id |
path | string | Yes | ID of the profile. |
name |
body | string | No | Profile name. |
jurisdictions |
body | array of strings | No | Pack codes to enable, for example ["US-FED", "US-CA"]. Default ["US-FED"]. |
jurisdiction_mode |
body | string: auto, strictest, explicit |
No | How enabled packs are applied to a session. Default auto. |
on_unknown_region |
body | string: strictest, base_only, reject |
No | What to do when a U.S. signer has no signer.region. Default strictest. |
governing_law |
body | string | No | Pack code or ISO 3166 code named as governing law in the documents. |
allow_session_packs |
body | boolean | No | Whether a session may add a pack the profile does not enable. |
strict_jurisdictions |
body | boolean | No | Return 422 jurisdiction_not_enabled instead of a warning. |
signer_class |
body | string | No | consumer, business or employee. |
document_type |
body | string | No | Document type this profile is meant for. |
purpose |
body | string | No | Default context.purpose. |
method |
body | string: click, checkbox, typed, drawn, passkey |
No | Signature method. Default checkbox. |
assurance_level |
body | string: L1, L2, L3 |
No | Default L1, on every plan. L2 (an emailed code) and L3 (a passkey) are optional and need the Unlimited or Enterprise plan: on Free and Starter the request returns 403 plan_feature_unavailable. |
failure_mode |
body | string: fail_closed, fail_open_deferred |
No | Default fail_closed. |
consumer_econsent |
body | boolean | No | Require the ESIGN consumer consent steps for consumer signers. |
capture_mode |
body | string: standard, eu_minimal |
No | Default standard. |
receipts_enabled |
body | boolean | No | Send the signer receipt email. Default true. |
pack_versions |
body | any | No | "latest" (the default), or a map of pack code to version for an Enterprise contract that pins pack versions. |
signer_certificates_enabled |
body | boolean | No | Reserved for signer-requested certificates, which are planned. Default false. |
prompt_id |
body | string | No | ID of the generated prompt the profile belongs to. Set by the prompt generator; stored as sent. |
change_note |
body | string | No | Note stored with the new profile version. |
Headers: Idempotency-Key (optional, up to 255 characters) and Esign-Comply-Version (optional, a dated API version). See API conventions.
Response
200 OK with a Profile object.
{
"object": "profile",
"id": "prof_signup_4f1a",
"version": 2,
"livemode": false,
"name": "Signup",
"jurisdictions": [
"US-FED",
"US-CA",
"US-NY"
],
"jurisdiction_mode": "auto",
"on_unknown_region": "strictest",
"governing_law": null,
"allow_session_packs": false,
"strict_jurisdictions": false,
"pack_versions": "latest",
"signer_class": null,
"document_type": null,
"purpose": null,
"method": "checkbox",
"assurance_level": "L1",
"failure_mode": "fail_closed",
"consumer_econsent": false,
"capture_mode": "standard",
"receipts_enabled": true,
"signer_certificates_enabled": false,
"rules_version": "2026.11.2",
"baseline": "bl_SPNT",
"prompt_id": null,
"change_note": "Enabled New York.",
"created_at": "2026-11-26T00:17:43.274Z"
}
Response fields
| Field | Type | Description |
|---|---|---|
object |
string | |
id |
string | |
version |
integer | |
livemode |
boolean | |
name |
string | |
jurisdictions |
array of string | |
jurisdiction_mode |
string | |
on_unknown_region |
string | |
governing_law |
string | |
allow_session_packs |
boolean | |
strict_jurisdictions |
boolean | |
signer_class |
string | |
document_type |
string | |
purpose |
string | |
method |
string | |
assurance_level |
string | |
failure_mode |
string | |
consumer_econsent |
boolean | |
capture_mode |
string | |
receipts_enabled |
boolean | |
baseline |
string | |
prompt_id |
string | |
created_at |
datetime | |
pending_conditions |
array | |
versions |
array | |
warnings |
array of string |
Errors
| Code | HTTP | When |
|---|---|---|
invalid_request |
400 | The request is malformed: the body is not valid JSON, a known field has the wrong type, a required field is missing, a value is out of range, or a limit was passed (for example metadata over 50 keys, context.extra over 16 KB, event data over 256 KB, an Idempotency-Key over 255 characters, an unknown Esign-Comply-Version). |
jurisdiction_unknown |
400 | A pack code on a profile, a session, a dry run or a certificate wording is not in the catalogue. |
plan_feature_unavailable |
403 | When the new version would be at L2 or L3 on Free or Starter. |
not_found |
404 | No object with that ID exists in this domain and environment. |
Like every call made with a secret key, it can also return missing_api_key, invalid_api_key, domain_not_verified, insufficient_permission, idempotency_conflict, region_mismatch, rate_limit_exceeded and internal_error.
Every error has the same body: error.type, error.code, error.message, error.doc_url and error.request_id. See Errors.
Questions about POST /v1/profiles/{id}
Which credential does POST /v1/profiles/{id} need?
A secret key with full_access permission. Send it as a Bearer token in the Authorization header, from your server only. A session client token is refused with insufficient_permission.
Does POST /v1/profiles/{id} work with a test key?
Yes. It works with test keys and live keys. A test key reads and writes test objects only, and a live key works once the domain is verified.
Does POST /v1/profiles/{id} count as a signature event?
No. A signature event is counted when a live record is written, by completing a session or by submitting a deferred acceptance. This call writes no record.
Is POST /v1/profiles/{id} idempotent?
Yes, with an Idempotency-Key header of up to 255 characters. A repeat with the same key and the same bytes in the body returns the original response, with the header Idempotent-Replayed: true. The same key with a different body answers 409 idempotency_conflict.
What is the rate limit for POST /v1/profiles/{id}?
The limit is counted for each key and depends on the plan: 2 requests per second on Free, 10 on Starter, 50 on Unlimited and 100 on Enterprise. Past the limit the API answers 429 rate_limit_exceeded with a Retry-After header.
Does the Node SDK have a method for POST /v1/profiles/{id}?
No. Call it over HTTP, or with esc.request() in the esigncomply package, which sends the key and returns { data, error }.
Related
- Profiles: the overview of the resource and all of its operations.
- Create a profile:
POST /v1/profiles - List profiles:
GET /v1/profiles - Retrieve a profile:
GET /v1/profiles/{id} - Jurisdiction packs
- The ceremony
- Errors: every error code, with what to do.
- API conventions: authentication, idempotency, rate limits and versioning.
Last updated · API version 2026-11-21