ImesI

<back to all web services

CreateNotificacio

Requires Authentication
The following routes are available for this service:
POST/notificacions
CreateNotificacio Parameters:
NameParameterData TypeRequiredDescription
TipusbodyTipusNotificacioNo
NamebodystringNo
SubjectbodystringNo
Subject_ESbodystringNo
BodybodystringNo
Body_ESbodystringNo
TipusNotificacio Enum:
NameValue
Propietari1
Contracte2
Notificacio Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
NameformstringNo
TipusformTipusNotificacioNo
SubjectformstringNo
Subject_ESformstringNo
BodyformstringNo
Body_ESformstringNo
BasicRegister Parameters:
NameParameterData TypeRequiredDescription
CreatedAtformDateTimeOffset?No
CreatedByIdformint?No
CreatedByformBRUserNo
UpdatedAtformDateTimeOffset?No
UpdatedByIdformint?No
UpdatedByformBRUserNo
RowVersionformulongNo
BRUser Parameters:
NameParameterData TypeRequiredDescription
IdformintNo
UserNameformstringNo
EmailformstringNo
FirstNameformstringNo
LastNameformstringNo
DisplayNameformstringNo
TimeZoneformstringNo
RolesformList<string>No
PermissionsformList<string>No
CreatedDateformDateTimeNo
ModifiedDateformDateTimeNo

To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /notificacions HTTP/1.1 
Host: gpvnew.ocellot.com 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"Tipus":"Propietari","Name":"String","Subject":"String","Subject_ES":"String","Body":"String","Body_ES":"String"}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"Id":0,"Name":"String","Tipus":"Propietari","Subject":"String","Subject_ES":"String","Body":"String","Body_ES":"String","CreatedAt":"0001-01-01T00:00:00.0000000+00:00","CreatedById":0,"CreatedBy":{"Id":0,"UserName":"String","Email":"String","FirstName":"String","LastName":"String","DisplayName":"String","TimeZone":"String","Roles":["String"],"Permissions":["String"],"CreatedDate":"0001-01-01T00:00:00.0000000","ModifiedDate":"0001-01-01T00:00:00.0000000"},"UpdatedAt":"0001-01-01T00:00:00.0000000+00:00","UpdatedById":0,"UpdatedBy":{"Id":0,"UserName":"String","Email":"String","FirstName":"String","LastName":"String","DisplayName":"String","TimeZone":"String","Roles":["String"],"Permissions":["String"],"CreatedDate":"0001-01-01T00:00:00.0000000","ModifiedDate":"0001-01-01T00:00:00.0000000"},"RowVersion":0}