Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Method

POST

URI

/rest/v1/oppdrag

Parameters

Query Parameters
t type, could be omitted, default value "standards"
navn oppdrag's name. Non-mandatory if the same field in JSON is filled.

For special cases you can create the whole oppdrag in one post.
This only works for adding additional signatures for sdo's or signing documents of type text/BIDXML.

JSON body (optional):

Example

{

"navn":<name of assignment>,

"beskrivelse":<description of assignment>,

"purre_perriodeperiode_som_dager":<number of days before recurrent mail reminder will be sent>,

"layout_id":<ID of a layout assigned to customer organisation/branch>,

"sdo":<SDO object's XML>,

"signerere":[ {

"navn":<signer's name, will appear in email>

"offisiell_id":<FNR>,

"epost":<signer's email>

}]

}

Description

Creates a new oppdrag.

If body is added (only for special cases):
If type is set to sdo, the sdo field in the body is treated as an sdo.
This means you want to add an additional signature to an existing sdo.
If type is something else than "sdo", the sdo should be the bytes of the document only for mimetype text/BIDXML.

Result

Oppdrag data as JSON (201)

Example

{

"navn": "DLE 22.11/1",

"state": "Ikke startet",

"uuid": "f700b8d2-6de6-43fe-9577-360e3c3110c7",

"opprettet": "2016-11-22T10:12:15.019+01:00",

"beskrivelse": "some description and etc",

"oppdragstypebeskrivelse": "Vanlig oppdrag med dokumenter og signerere",

"layout": "DNB Eiendom AS_",

"signerere": [ {

"signererUuid": "f9baedbc-f13e-4555-8377-63d48a4ba5cc",

"epost": "dle@ambita.com", "

"fnr": "12345678901",

"signerernavn": "Terje",

"signererstate": "Ikke signert"

} ]

}

...