The Postman request:


Request configuration

a.- Headers

Standard headers, nothing to update here.


b.- Body

Values that are used for this demo (selected as Postman type RAW with JSON format):

KeyValueNotes
operationCategory

"registration"

the type of category of the operation we are trying to perform

documentKindCategory"{{document-kind}}"Document type, from "designpatenttrademarkutility model", for this example "patent"
documentNumber "{{priority-number}}"priority number generated before 
documentDate"{{priority-date}}"priority date generated before 
dasAccessCode"{{access-code}}"4 digit access code (from Postman environment)
applicationCategory"{{application-category}}"Document type, from "designpatenttrademarkutility model", for this example "patent"
applicationNumber

"{{application-number}}"

application number generated before 
applicationFilingDate

"{{application-date}}"

application date generated before 

email"{{email}}"email for communications
fileId"{{file-id}}"fileId obtained during b.1.3.2.- obtain fileId and a presigned URL to upload a big size document file (POST)

  
}


c.- Pre-request script

not used here.



d.- Tests script

The following script is executed after the request is sent, to evaluate the response and also to set up environment variables (if they are needed for following requests)

// following test will verify the expected response code for this request

pm.test("Status code is 200", function () {
    pm.response.to.have.status(200);
});

Expected response

e.- Body

Successful put response will be reported in the test as code 200


f.- Headers

Normal headers.


g.- Test results

This depends on the test we set up in the test script



  • No labels