For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
  • Métodos API
      • POSTLogin
      • POSTLanguages
      • POSTCreate Appointment
      • POSTCreate Appointment Representation
      • POSTCreate Appointment Representation Guests
      • POSTCancel Appointment
      • POSTCouncil evidence summary
      • POSTCouncil Info
      • POSTCouncils
      • POSTAssign Appointment to Operator
      • POSTAppointment Documentation
      • POSTCouncil Documentation
      • POSTCompany Month Schedule
      • POSTDay slots
      • POSTShare appointment
      • POSTUpload council Act
      • POSTCompany Procedures
      • POSTReschedule Appointment
      • POSTOrganization companies
      • POSTOrganization Users
      • POSTCreate Appointment_External
      • POSTCreate Appointment Representation_External
      • POSTCreate Appointment Representation Guests_External
      • POSTCouncils_External
      • POSTCouncil Info_External
      • POSTCancel Appointment_External
      • POSTCouncil evidence summary_External
      • POSTAssign Appointment to Operator_External
LogoLogo
Métodos APIOvac

Share appointment

|View as Markdown|Open in Claude|
POST
/graphql/shareappointment
POST
/graphql/shareappointment
$curl -X POST https://api.ovac.pre.councilbox.com/graphql/shareappointment \
> -H "x-jwt-token: <apiKey>" \
> -H "Content-Type: application/json" \
> -d '{
> "query": "mutation ShareAppointment (\r\n $councilId: ID!,\r\n $requirePin: Int\r\n\r\n){\r\n shareAppointment(\r\n councilId: $councilId,\r\n requirePin: $requirePin,\r\n ) {\r\n url\r\n pin\r\n }\r\n}",
> "variables": {
> "councilId": 12345,
> "requirePin": 1
> }
>}'
200Share appointment
1{
2 "data": {
3 "shareAppointment": {
4 "url": "https://l.councilbox.com/to/f5be6e55",
5 "pin": 18633
6 }
7 }
8}
# Share Appointment (`shareAppointment`) Esta mutación permite generar un enlace único de acceso compartido para una cita específica. Adicionalmente, expone un parámetro de seguridad ajustable que permite condicionar el acceso de terceros mediante un código PIN dinámico generado por el sistema. ### Autenticación > **Tipo:** API Key** Header:** `x-jwt-token` **Ubicación:** Header HTTP_ Ejemplo:_ `x-jwt-token: eyJhbGciOiJIUzI1NiIsInR5cCI6...` ## Referencia de la API ### Parámetros de Entrada (Variables) | Parámetro | Descripción | Requerido | Tipo | | --- | --- | --- | --- | | councilId | Identificador único de la cita a la que se desea permitir el acceso. | SI | Integer | | requirePin | Parámetro de seguridad para el nivel de acceso: <br>`0` -> Acceso directo sin autenticación adicional. <br>`1` -> Requiere PIN de seguridad (se generará en la respuesta). | SI | Integer | ### Campos de Respuesta (Payload) La mutación devuelve un objeto `shareAppointment` con el enlace securizado: | Parámetro | Descripción | Tipo | | --- | --- | --- | | shareAppointment | Objeto raíz con los datos del enlace compartido generado. | Object | | shareAppointment.**url** | Enlace único de acceso directo para auditar la cita. | String | | shareAppointment.**pin** | Código numérico secreto de acceso. Este campo solo se devolverá si $requirePin fue enviado con valor 1. | Integer | ## Ejemplos de Código y Peticiones ### 1\. Mutación GraphQL ``` graphql mutation ShareAppointment($councilId: ID!, $requirePin: Int) { shareAppointment(councilId: $councilId, requirePin: $requirePin) { url pin } } ``` ### 2\. Variables de la Petición (JSON Payload) ``` json { "councilId": 64767, "requirePin": 1 } ``` ### 3\. Ejemplo de comando cURL ``` bash curl --location "https://api.ovac.pre.councilbox.com/graphql" \ --header "Content-Type: application/json" \ --header "x-jwt-token: {{token}}" \ --data '{"query":"mutation ShareAppointment ($councilId: ID!, $requirePin: Int){ shareAppointment(councilId: $councilId, requirePin: $requirePin) { url pin } }","variables":{"councilId":64767,"requirePin":1}}' ``` ### 4\. Respuesta Esperada (200 OK) ``` json { "data": { "shareAppointment": { "url": "https://l.councilbox.com/to/82e520fb", "pin": 18065 } } } ``` > **Nota OpenAPI/Fern:** esta operación GraphQL se documenta como `/graphql/shareappointment` para que Fern pueda mostrarla como operación independiente. La ruta técnica real de ejecución es `POST /graphql`.
Was this page helpful?
Previous

Day slots

Next

Upload council Act

Built with

Esta mutación permite generar un enlace único de acceso compartido para una cita específica. Adicionalmente, expone un parámetro de seguridad ajustable que permite condicionar el acceso de terceros mediante un código PIN dinámico generado por el sistema.

Autenticación

Tipo: API Key**
Header:** x-jwt-token
Ubicación: Header HTTP_
Ejemplo:_ x-jwt-token: eyJhbGciOiJIUzI1NiIsInR5cCI6...

Referencia de la API

Parámetros de Entrada (Variables)

ParámetroDescripciónRequeridoTipo
councilIdIdentificador único de la cita a la que se desea permitir el acceso.SIInteger
requirePinParámetro de seguridad para el nivel de acceso:
0 -> Acceso directo sin autenticación adicional.
1 -> Requiere PIN de seguridad (se generará en la respuesta).
SIInteger

Campos de Respuesta (Payload)

La mutación devuelve un objeto shareAppointment con el enlace securizado:

ParámetroDescripciónTipo
shareAppointmentObjeto raíz con los datos del enlace compartido generado.Object
shareAppointment.urlEnlace único de acceso directo para auditar la cita.String
shareAppointment.pinCódigo numérico secreto de acceso. Este campo solo se devolverá si $requirePin fue enviado con valor 1.Integer

Ejemplos de Código y Peticiones

1. Mutación GraphQL

1mutation ShareAppointment($councilId: ID!, $requirePin: Int) {
2 shareAppointment(councilId: $councilId, requirePin: $requirePin) {
3 url
4 pin
5 }
6}

2. Variables de la Petición (JSON Payload)

1{
2 "councilId": 64767,
3 "requirePin": 1
4}

3. Ejemplo de comando cURL

$curl --location "https://api.ovac.pre.councilbox.com/graphql" \
>--header "Content-Type: application/json" \
>--header "x-jwt-token: {{token}}" \
>--data '{"query":"mutation ShareAppointment ($councilId: ID!, $requirePin: Int){ shareAppointment(councilId: $councilId, requirePin: $requirePin) { url pin } }","variables":{"councilId":64767,"requirePin":1}}'

4. Respuesta Esperada (200 OK)

1{
2 "data": {
3 "shareAppointment": {
4 "url": "https://l.councilbox.com/to/82e520fb",
5 "pin": 18065
6 }
7 }
8}

Nota OpenAPI/Fern: esta operación GraphQL se documenta como /graphql/shareappointment para que Fern pueda mostrarla como operación independiente. La ruta técnica real de ejecución es POST /graphql.

Authentication

x-jwt-tokenstring
JWT token obtained from Login.

Request

This endpoint expects an object.
querystringRequired
GraphQL operation
variablesobjectOptional
GraphQL variables

Response

Successful response. GraphQL business errors may be returned inside the JSON errors field while transport status remains HTTP 200.