Create new WebSocial record

POST/web-socials/section/{sectionCodeName}

Create new WebSocial record for given section code name.

Privileges:

  • biz-core.manage - Logged user can create new WebSocial record for all sections.

Audit event:

  • biz.core.v2.web.social.section.add

Validation errors:

  • invalid value - Section row id of the WebSocial must be provided
  • invalid value - Name of the WebSocial must be provided
  • invalid value - Value of the WebSocial must be provided
Base URL
https://api-cpaas.sms.es/biz-core/v2
Authentication

OAuth2 — send Authorization: Bearer <access_token>. Token URL: https://accounts-cpaas.sms.es/oauth2/access-token

Request

Path parameters

sectionCodeNamestringrequired

code name for section - DETAILS, CONTACTS, FINANCE-SETTINGS

Body required

application/json
namestringrequired
max length: 50
sectionRowIdinteger

id of details for section DETAILS or id of contact for section CONTACTS

max length: 10
valuestring
max length: 1000

Request example

cURL · cURL
curl -L -X POST "https://api-cpaas.sms.es/biz-core/v2/web-socials/section/{sectionCodeName}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer <access_token>" \
  --data-raw '{
  "name": "string",
  "sectionRowId": 0,
  "value": "string"
}'

Responses

WebSocial created

application/json
idinteger
namestring
sectionRowIdinteger
statusstring
Possible values: active, deleted
statusDtstring (date-time)
valuestring
Example response
{
  "id": 0,
  "name": "string",
  "sectionRowId": 0,
  "status": "active",
  "statusDt": "2026-01-01T12:00:00Z",
  "value": "string"
}