Configurazione

Risorse per la configurazione dei template e placeholders

Create a new template.

post

Create a new template for sending messages to the govio services.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Body
namestring · max: 255RequiredExample: Spedizione Messaggio CIEPattern: .*
descriptionstring · max: 9223372036854776000OptionalExample: Segnala la scadenza della proprià C.I.E.Pattern: [\s\S]*
subjectstring · max: 255RequiredExample: Scadenza CIE n. ${cie.uppercase}Pattern: .+
message_bodystring · max: 9223372036854776000RequiredExample: Salve, con la presente la informiamo che in data ${due_date} scadrà la Carta di Identità elettronica numero ${cie.uppercase}.Pattern: [\s\S]+
has_paymentbooleanRequired
has_due_datebooleanRequired
Responses
post
/templates

List the templates.

get

List the templates used for sending messages to the govio services,sorted by name.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Query parameters
limitinteger · int32 · min: 1 · max: 100Optional

Max number of provided items.

offsetinteger · int64 · max: 9223372036854776000Optional

offset (zero-based) of indexed results.

Default: 0
qstring · max: 255Optional

generic query.

Example: user_1Pattern: ^[^\u0000]*$
sort_directionstring · enumRequired

Direction Sorting field.

Default: descPossible values:
Responses
chevron-right
200

Successful operation.

application/hal+json
get
/templates

Reads a service template.

get

Reads a service template.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Path parameters
idinteger · int64Required

GovIO Template Id.

Example: 1
Responses
chevron-right
200

Successful operation.

application/hal+json
get
/templates/{id}

Update template data.

patch

Update template data.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Path parameters
idinteger · int64Required

GovIO Template Id.

Example: 1
Bodyobject[]
opstring · enumRequired

Specified operation.

Example: addPossible values:
pathstring · max: 4096Required

jsonPath of the mutating object.

Example: /organizationsPattern: ^.*$
valueobjectOptional

updating value.

Responses
chevron-right
200

Succsessful operation.

application/hal+json
patch
/templates/{id}

Assign a placeholder to a template.

post

Associate a placeholder to a template.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Path parameters
idinteger · int64Required

GovIO Template Id.

Example: 1
Query parameters
placeholder_idinteger · int64Required

GovIO Placeholder Id.

Example: 1
Body
mandatorybooleanRequired
positioninteger · int32 · max: 2147483647Required
Responses
post
/templates/{id}/placeholders

List the template placeholders.

get

List the template associated placeholders.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Path parameters
idinteger · int64Required

GovIO Template Id.

Example: 1
Query parameters
Responses
chevron-right
200

Successful operation.

application/hal+json
get
/templates/{id}/placeholders

Update the template placeholders.

put

Updates the whole template placeholder list.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Path parameters
idinteger · int64Required

GovIO Template Id.

Example: 1
Body
Responses
put
/templates/{id}/placeholders

Removes the placeholder from the template.

delete

Removes the placeholder from the template.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Path parameters
template_idinteger · int64Required

GovIO Template Id.

Example: 1
placeholder_idinteger · int64Required

GovIO Placeholder Id.

Example: 1
Responses
chevron-right
200

Successful operation.

No content

delete
/templates/{template_id}/placeholders/{placeholder_id}

No content

List the placeholders.

get

Placeholders can be reused across templates, this endpoints allows to list them.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Query parameters
limitinteger · int32 · min: 1 · max: 100Optional

Max number of provided items.

offsetinteger · int64 · max: 9223372036854776000Optional

offset (zero-based) of indexed results.

Default: 0
qstring · max: 255Optional

generic query.

Example: user_1Pattern: ^[^\u0000]*$
Responses
chevron-right
200

Successful operation.

application/hal+json
get
/placeholders

Create a new template placeholder.

post

Placeholders can be reused across templates, this endpoints allows to create one.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Body
namestring · max: 255RequiredExample: ciePattern: .+
descriptionstring · max: 9223372036854776000OptionalExample: Numero carta d'identità elettronica.Pattern: [\s\S]*
examplestring · max: 255RequiredExample: CA000000AAPattern: [\s\S]+
patternstring · max: 255OptionalExample: [A-Z]{6}[0-9LMNPQRSTUV]{2}[ABCDEHLMPRST][0-9LMNPQRSTUV]{2}[A-Z][0-9LMNPQRSTUV]{3}[A-Z]Pattern: [\s\S]*
typestring · enumRequiredPossible values:
Responses
post
/placeholders

Read the specified placeholder.

get

Placeholders can be reused across templates, this endpoints allows to read one of them.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Path parameters
idinteger · int64Required

GovIO Placeholder Id.

Example: 1
Responses
chevron-right
200

Successful operation.

application/hal+json
get
/placeholders/{id}

Update placeholder data.

patch

Update placeholder data.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Path parameters
idinteger · int64Required

GovIO Placeholder Id.

Example: 1
Bodyobject[]
opstring · enumRequired

Specified operation.

Example: addPossible values:
pathstring · max: 4096Required

jsonPath of the mutating object.

Example: /organizationsPattern: ^.*$
valueobjectOptional

updating value.

Responses
chevron-right
200

Succsessful operation.

application/hal+json
patch
/placeholders/{id}

List Govio Service Instances

get

Read and Filter the Govio Service Instanes

Authorizations
GovHub-Consumer-PrincipalstringRequired
Query parameters
service_idinteger · int64 · max: 9223372036854776000Optional

Service identifier.

Example: 1
organization_idinteger · int64 · max: 9223372036854776000Optional

Organization identifier.

Example: 1
io_service_idstring · min: 1 · max: 255Optional
qstring · max: 255Optional

generic query.

Example: user_1Pattern: ^[^\u0000]*$
enabledbooleanOptional

filter by status.

limitinteger · int32 · min: 1 · max: 100Optional

Max number of provided items.

offsetinteger · int64 · max: 9223372036854776000Optional

offset (zero-based) of indexed results.

Default: 0
sort_directionstring · enumRequired

Direction Sorting field.

Default: descPossible values:
Responses
chevron-right
200

Successful operation.

application/hal+json
get
/service-instances

Creates a new Service Instance.

post

An organization can subscribe to a service multiple times, each time with a different message template, then the clients can send messages to the IO service using the service instance.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Body
and
Responses
chevron-right
200

Successful operation.

application/hal+json
post
/service-instances

Retrieve a service instance.

get

Returns the specified service instance.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Path parameters
idinteger · int64Required

Govio Service Instance Id.

Example: 1
Responses
chevron-right
200

Successful operation.

application/hal+json
get
/service-instances/{id}

Update the service instance.

patch

Only the apiKey can be modified by this operation.

Authorizations
GovHub-Consumer-PrincipalstringRequired
Path parameters
idinteger · int64Required

Govio Service Instance Id.

Example: 1
Bodyobject[]
opstring · enumRequired

Specified operation.

Example: addPossible values:
pathstring · max: 4096Required

jsonPath of the mutating object.

Example: /organizationsPattern: ^.*$
valueobjectOptional

updating value.

Responses
chevron-right
200

Succsessful operation.

application/hal+json
patch
/service-instances/{id}

Last updated