--- title: "POST | Create or edit cURL publication profile" slug: "api-clm-post-create-edit-curl" updated: 2026-09-24T14:22:09Z published: 2026-09-24T14:22:09Z canonical: "docs.senhasegura.io/api-clm-post-create-edit-curl" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.senhasegura.io/llms.txt > Use this file to discover all available pages before exploring further. # POST | Create or edit cURL publication profile Creates or edits a publication profile for the CURL destination. - **Endpoint**: `/api/certificate/profile/curl` - **Method**: `POST` - **Request**: `POST /api/certificate/profile/curl` ## Request parameters | Parameter | Type | Required | Description | | --- | --- | --- | --- | | `code_profile` | `int` | No | Existing profile code. Omit it to create a new profile. Editing with only `code_profile` and `name_profile` preserves the profile's existing `execution_template` and `additional_info` values. | | `name_profile` | `string` | Yes | Profile name. | | `execution_template` | `int` | Yes | Code of the execution template that describes the request. The template's execution type must be **Certificate publication**. | | `additional_info` | `string` | No | Value that fills the `[#CERT_ADD_INFO#]` tag in the execution template. Accepts letters, numbers, dot, hyphen, and underscore only. | | `code_credential` | `int` | Conditional | Credential code to use for the publication. Required if a `username` is not provided. | | `username` | `string` | Conditional | Username used to locate credentials for the publication. Required if `code_credential` is not provided. | | `devices` | `array` | Yes | Array with device codes where the certificate should be published. | ### Example using cURL ``` curl -X POST https://[segura_vault_url]/api/certificate/profile/curl \ -H "Authorization: Bearer YOUR_API_TOKEN" \ -H "Content-Type: application/json" \ -d '{ "name_profile": "Internal webhook - Production", "execution_template": 45, "additional_info": "prod-cert", "username": "admin", "devices": [101, 102, 103] }' ``` ### Response ``` { "status": 200, "message": "Profile created successfully", "error": false, "code_profile": 22, "name_profile": "Internal webhook - Production", "execution_template": 45, "additional_info": "prod-cert", "username": "admin", "devices": [101, 102, 103] } ``` ### Error responses | HTTP Status Code | Description | | --- | --- | | 400 Bad Request | Invalid parameters provided. | | 401 Unauthorized | Unauthorized access. | | 403 Forbidden | Forbidden access. | | 404 Not Found | Resource not found. | | 500 Internal Server Error | Internal server error. | ### CURL-specific error codes | HTTP Status Code | Internal code | Cause | | --- | --- | --- | | 400 Bad Request | 1078 | `execution_template` is missing. | | 400 Bad Request | 1079 | `execution_template` does not exist, is inactive, or is not a **Certificate publication** template. | | 400 Bad Request | 1080 | `additional_info` contains a character other than a letter, number, dot, hyphen, or underscore. |