{ "apiVersion":"6.0.0" ,"swaggerVersion":"1.2" ,"basePath":"/api/rest/v6" ,"resourcePath":"/agreements" ,"produces": ["application/json","application/pdf","text/csv" ] ,"apis": [ { "path":"/agreements" ,"operations": [ { "httpMethod":"POST" ,"summary":"Creates an agreement. Sends it out for signatures, and returns the agreementID in the response to the client." ,"notes":"This is a primary endpoint which is used to create a new agreement. An agreement can be created using transientDocument, libraryDocument or a URL. You can create an agreement in one of the 3 mentioned states: a) DRAFT<\/b> - to incrementally build the agreement before sending out, b) AUTHORING<\/b> - to add/edit form fields in the agreement, c) IN_PROCESS<\/b> - to immediately send the agreement. You can use the PUT /agreements/{agreementId}/state endpoint to transition an agreement between the above mentioned states. An allowed transition would follow the following sequence: DRAFT -> AUTHORING -> IN_PROCESS -> CANCELLED." ,"type":"AgreementCreationResponse" ,"nickname":"createAgreement" ,"order":6 ,"produces": ["application/json" ] ,"authorizations": { "oauth2": [ { "scope":"agreement_write" } ] } ,"parameters": [ { "name":"Authorization" ,"description":"An OAuth Access Token<\/a> with scopes: