{"info":{"_postman_id":"a2eb08bc-bf13-40c9-bdbe-ec37f3f64f18","name":"NGSI-LD Merge-Patch and Put","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"513743","collectionId":"a2eb08bc-bf13-40c9-bdbe-ec37f3f64f18","publishedId":"2sA3Qv9WUF","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-05-31T11:48:33.000Z"},"item":[{"name":"Preflight","item":[{"name":"Permitted options for entities","id":"275768fe-151f-4692-b49c-66b9a61c53a0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"OPTIONS","header":[],"url":"http://localhost:1026/ngsi-ld/v1/entities/","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities",""],"host":["localhost:1026"],"query":[],"variable":[]}},"response":[],"_postman_id":"275768fe-151f-4692-b49c-66b9a61c53a0"},{"name":"Permitted options for a single entity","id":"95d8620d-e36a-42b2-aac3-fd7ee35dec7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"OPTIONS","header":[],"body":{"mode":"raw","raw":"{\n    \"temperature\":{\n        \"coordinates\": [0,0]\n    }\n}"},"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:001","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:001"],"host":["localhost:1026"],"query":[],"variable":[]}},"response":[],"_postman_id":"95d8620d-e36a-42b2-aac3-fd7ee35dec7f"},{"name":"Permitted options for entity attributes","id":"6bdcad3e-de9d-44e6-9532-9e42aaf48c4d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"OPTIONS","header":[],"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:001/attrs","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:001","attrs"],"host":["localhost:1026"],"query":[],"variable":[]}},"response":[],"_postman_id":"6bdcad3e-de9d-44e6-9532-9e42aaf48c4d"},{"name":"Permitted options for an attribute","id":"ed682939-3495-4924-ad53-6a66bb733fd0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"OPTIONS","header":[],"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:001/attrs/temperature","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:001","attrs","temperature"],"host":["localhost:1026"],"query":[],"variable":[]}},"response":[],"_postman_id":"ed682939-3495-4924-ad53-6a66bb733fd0"}],"id":"ec987217-9f12-4926-a969-c14c32576928","_postman_id":"ec987217-9f12-4926-a969-c14c32576928","description":""},{"name":"Create,Read,Overwrite","item":[{"name":"Create a New Data Entity (normalized)","id":"9330a836-50d6-48cf-b500-d81bc53e174a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Link","value":"<http://context/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"urn:ngsi-ld:City:001\",\n    \"type\": \"City\",\n    \"temperature\": {\n        \"type\": \"Property\",\n        \"value\": 25,\n        \"unitCode\": \"CEL\",\n        \"observedAt\": \"2022-06-30T00:00:00.000Z\"\n    },\n    \"location\": {\n        \"type\": \"GeoProperty\",\n        \"value\": {\n            \"type\": \"Point\",\n            \"coordinates\": [\n                28.955,\n                41.0136\n            ]\n        }\n    },\n    \"population\": {\n        \"type\": \"Property\",\n        \"value\": 15840900,\n        \"observedAt\": \"2022-12-31T00:00:00.000Z\"\n    },\n    \"address\": {\n        \"type\": \"Property\",\n        \"value\": {\n            \"streetAddress\": \"Kanlıca İskele Meydanı\",\n            \"addressRegion\": \"İstanbul\",\n            \"addressLocality\": \"Beşiktaş\",\n            \"postalCode\": \"12345\"\n        }\n    },\n    \"name\": {\n        \"type\": \"LanguageProperty\",\n        \"languageMap\": {\n            \"el\": \"Κωνσταντινούπολις\",\n            \"en\": \"Constantinople\",\n            \"tr\": \"İstanbul\"\n        }\n    },\n    \"runBy\": {\n        \"type\": \"Relationship\",\n        \"object\": \"urn:ngsi-ld:Adminstration:001\"\n    }\n}"},"url":"http://localhost:1026/ngsi-ld/v1/entities/","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities",""],"host":["localhost:1026"],"query":[],"variable":[]}},"response":[],"_postman_id":"9330a836-50d6-48cf-b500-d81bc53e174a"},{"name":"Create a Second Data Entity (concise)","id":"3471ee2d-530b-4014-a2c9-3b0b3730fefe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","value":"application/json"},{"key":"Link","value":"<http://context/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"id\": \"urn:ngsi-ld:City:002\",\n    \"type\": \"City\",\n    \"temperature\": {\n        \"value\": 25,\n        \"unitCode\": \"CEL\",\n        \"observedAt\": \"2022-06-30T00:00:00.000Z\"\n    },\n    \"address\": {\n        \"value\": {\n            \"streetAddress\": \"Viale di Valle Aurelia\",\n            \"addressRegion\": \"Lazio\",\n            \"addressLocality\": \"Roma\",\n            \"postalCode\": \"00138\"\n        }\n    },\n    \"location\": {\n        \"type\": \"Point\",\n        \"coordinates\": [\n            12.482,\n            41.893\n        ]\n    },\n    \"population\": {\n        \"value\": 4342212,\n        \"observedAt\": \"2021-01-01T00:00:00.000Z\"\n    },\n    \"name\": {\n        \"languageMap\": {\n            \"el\": \"Ρώμη\",\n            \"en\": \"Rome\",\n            \"it\": \"Roma\"\n        }\n    },\n    \"runBy\": {\n        \"object\": \"urn:ngsi-ld:Adminstration:001\"\n    }\n}"},"url":"http://localhost:1026/ngsi-ld/v1/entities/","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities",""],"host":["localhost:1026"],"query":[],"variable":[]}},"response":[],"_postman_id":"3471ee2d-530b-4014-a2c9-3b0b3730fefe"},{"name":"Overwrite an Entity","id":"85d789a2-c699-47cf-a444-65210652d9da","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Content-Type","value":"application/json"},{"key":"Link","value":"<http://context/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"}],"body":{"mode":"raw","raw":"{\n\n    \"type\": \"City\",\n    \"temperature\": {\n        \"type\": \"Property\",\n        \"value\": 25,\n        \"unitCode\": \"CEL\",\n        \"observedAt\": \"2022-06-30T00:00:00.000Z\"\n    },\n    \"location\": {\n        \"type\": \"Point\",\n        \"coordinates\": [\n            12.482,\n            41.893 \n        ]\n    },\n    \"name\": {\n        \"type\": \"LanguageProperty\",\n        \"languageMap\": {\n            \"el\": \"Ρώμη\",\n            \"en\": \"Rome\",\n            \"it\": \"Roma\"\n        }\n    }\n}"},"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:002","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:002"],"host":["localhost:1026"],"query":[],"variable":[]}},"response":[],"_postman_id":"85d789a2-c699-47cf-a444-65210652d9da"},{"name":"Read a Data Entity (normalized)","id":"92aa93fe-0409-4bfd-b750-82cb165dde03","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Link","value":"<http://context/json-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"},{"key":"Accept","value":"application/json","type":"text","name":"Accept"}],"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:001?options=normalized","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:001"],"host":["localhost:1026"],"query":[{"description":{"content":"<ul>\n<li><code>keyValues</code> option in order to get a more compact and brief representation, including just attribute values</li>\n<li><code>values</code> option combined with a list of attribute values  <code>attrs</code>  for an ordered list of attributes only</li>\n</ul>\n","type":"text/plain"},"key":"options","value":"normalized"}],"variable":[]}},"response":[],"_postman_id":"92aa93fe-0409-4bfd-b750-82cb165dde03"},{"name":"Read a Data Entity (concise)","id":"604d85e9-cc9f-4ac5-b3ef-ac21f111be3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Link","value":"<http://context/json-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"},{"key":"Accept","value":"application/json","type":"text","name":"Accept"}],"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:002/?options=concise","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:002",""],"host":["localhost:1026"],"query":[{"description":{"content":"<ul>\n<li><code>keyValues</code> option in order to get a more compact and brief representation, including just attribute values</li>\n<li><code>values</code> option combined with a list of attribute values  <code>attrs</code>  for an ordered list of attributes only</li>\n</ul>\n","type":"text/plain"},"key":"options","value":"concise"},{"disabled":true,"key":"lang","value":"el"}],"variable":[]}},"response":[],"_postman_id":"604d85e9-cc9f-4ac5-b3ef-ac21f111be3c"},{"name":"Read a Data Entity (key-values)","id":"59cda9c7-026e-4f1e-b4a4-e84252556f51","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Link","value":"<http://context/json-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"},{"key":"Accept","value":"application/json","type":"text","name":"Accept"}],"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:001/?options=keyValues&lang=el","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:001",""],"host":["localhost:1026"],"query":[{"description":{"content":"<ul>\n<li><code>keyValues</code> option in order to get a more compact and brief representation, including just attribute values</li>\n<li><code>values</code> option combined with a list of attribute values  <code>attrs</code>  for an ordered list of attributes only</li>\n</ul>\n","type":"text/plain"},"key":"options","value":"keyValues"},{"key":"lang","value":"el"}],"variable":[]}},"response":[],"_postman_id":"59cda9c7-026e-4f1e-b4a4-e84252556f51"}],"id":"ad8ad9ca-c9ed-40ca-bf43-1652fcbd7e43","_postman_id":"ad8ad9ca-c9ed-40ca-bf43-1652fcbd7e43","description":""},{"name":"Merge-Patch","item":[{"name":"Merge-Patch Attributes","id":"613d0f85-9ad2-434b-b696-1559dbf31dca","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Link","value":"<http://context/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"temperature\": {\"type\":\"Property\", \"value\": 18},\n    \"location\": {\n        \"type\": \"Point\",\n        \"coordinates\": [\n            12.3505,\n            50.5146\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:001/attrs","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:001","attrs"],"host":["localhost:1026"],"query":[{"disabled":true,"key":"options","value":"keyValues"},{"disabled":true,"key":"attrs","value":"temperature"},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"613d0f85-9ad2-434b-b696-1559dbf31dca"},{"name":"Adding sub-attributes","id":"efb2b66b-bb1a-4428-81d6-8affc87a37e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Link","value":"<http://context/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"temperature\": {\n        \"type\": \"Property\",\n        \"value\": 7,\n        \"observedAt\": \"2022-03-14T12:51:02.000Z\",\n        \"precision\": {\n            \"value\": 0.95,\n            \"unitCode\": \"C62\"\n        }\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:001","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:001"],"host":["localhost:1026"],"query":[{"disabled":true,"key":"options","value":"keyValues"},{"disabled":true,"key":"attrs","value":"temperature"},{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"efb2b66b-bb1a-4428-81d6-8affc87a37e4"},{"name":"Using NGSI-LD null to delete","id":"3ac98107-30bb-4ac0-8cfc-8b84b12bf77a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Link","value":"<http://context/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"humidity\": 80,\n    \"name\": {\n        \"languageMap\": {\n            \"el\": \"Βερολίνο\",\n            \"en\": \"Berlin\",\n            \"it\": \"Berlino\"\n        }\n    },\n    \"temperature\": {\n        \"value\": 1,\n        \"precision\": \"urn:ngsi-ld:null\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:002","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:002"],"host":["localhost:1026"],"query":[{"disabled":true,"key":"options","value":"keyValues"},{"disabled":true,"key":"attrs","value":"temperature"},{"disabled":true,"key":"","value":null}],"variable":[]}},"response":[],"_postman_id":"3ac98107-30bb-4ac0-8cfc-8b84b12bf77a"},{"name":"Amending values of a Property with sub-attributes","id":"89803b81-3d4c-416d-9b85-976ccb4cbc77","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Link","value":"<http://context/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"address\": {\n        \"value\": {\n            \"addressLocality\": \"Fenerbahçe\",\n            \"postalCode\": \"34567\"\n        },\n        \"verified\": \"true\"\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:001","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:001"],"host":["localhost:1026"],"query":[{"disabled":true,"key":"attrs","value":"temperature"},{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"89803b81-3d4c-416d-9b85-976ccb4cbc77"},{"name":"Updating using key-values format","id":"b19bacc4-d517-4f9f-8606-d2726da6c599","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Link","value":"<http://context/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"temperature\": 19,\n    \"location\": {\n        \"type\": \"Point\",\n        \"coordinates\": [\n            13.3505,\n            52.5146\n        ]\n    },\n    \"address\": {\n        \"addressLocality\": \"Beyoğlu\",\n        \"postalCode\": \"98765\"\n    },\n    \"runBy\": \"urn:ngsi-ld:Adminstration:Adalet_ve_Kalkınma_Partisi\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:001?options=keyValues","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:001"],"host":["localhost:1026"],"query":[{"disabled":true,"key":"attrs","value":"temperature"},{"disabled":true,"key":"","value":""},{"key":"options","value":"keyValues"}],"variable":[]}},"response":[],"_postman_id":"b19bacc4-d517-4f9f-8606-d2726da6c599"},{"name":"Using key-values with observedAt","id":"6b41e1ff-bebd-48d4-b41b-96db624a31f6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Link","value":"<http://context/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"temperature\": 19,\n    \"location\": {\n        \"type\": \"Point\",\n        \"coordinates\": [\n            13.3505,\n            52.5146\n        ]\n    }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:001?options=keyValues&observedAt=2022-10-10T10:10:00.000Z","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:001"],"host":["localhost:1026"],"query":[{"key":"options","value":"keyValues"},{"disabled":true,"key":"attrs","value":"temperature"},{"disabled":true,"key":"","value":""},{"key":"observedAt","value":"2022-10-10T10:10:00.000Z"}],"variable":[]}},"response":[],"_postman_id":"6b41e1ff-bebd-48d4-b41b-96db624a31f6"},{"name":"Using key-values with lang","id":"bc259680-4f9c-404f-b3a0-2212a4ffc87d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[{"key":"Link","value":"<http://context/ngsi-context.jsonld>; rel=\"http://www.w3.org/ns/json-ld#context\"; type=\"application/ld+json\"","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"temperature\": 19,\n    \"population\": 15850000,\n    \"name\": \"Istanbul, not Constantinople\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:1026/ngsi-ld/v1/entities/urn:ngsi-ld:City:001?options=keyValues&lang=en","urlObject":{"protocol":"http","path":["ngsi-ld","v1","entities","urn:ngsi-ld:City:001"],"host":["localhost:1026"],"query":[{"disabled":true,"key":"attrs","value":"temperature"},{"disabled":true,"key":"","value":""},{"key":"options","value":"keyValues"},{"key":"lang","value":"en"}],"variable":[]}},"response":[],"_postman_id":"bc259680-4f9c-404f-b3a0-2212a4ffc87d"}],"id":"75b379e9-864a-43ea-bd4c-508e06e683d8","_postman_id":"75b379e9-864a-43ea-bd4c-508e06e683d8","description":""}],"event":[{"listen":"prerequest","script":{"id":"b3f8653c-268a-4e8c-8561-8aec46ae4516","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"8a3687bc-7e35-4366-9327-976aa89cc30d","type":"text/javascript","exec":[""]}}],"variable":[{"key":"orion","value":"localhost:1026","type":"string"},{"key":"ngsi-context.jsonld","value":"http://context/ngsi-context.jsonld","type":"string"},{"key":"json-context.jsonld","value":"http://context/json-context.jsonld","type":"string"},{"key":"scorpio","value":"localhost:9090","type":"string"}]}