{"_id":"552742a47d4a441700951707","editedParams":true,"editedParams2":true,"user":"545a64cfbf1d2b0e00aaa091","project":"545a65231d018b1400227d8f","version":{"_id":"54e431e6de9f5b2300fc6dbc","forked_from":"545a65231d018b1400227d92","project":"545a65231d018b1400227d8f","__v":10,"createdAt":"2015-02-18T06:32:06.531Z","releaseDate":"2015-02-18T06:32:06.531Z","categories":["54e431e7de9f5b2300fc6dbd","54e431e7de9f5b2300fc6dbe","54e56a85c2f66835000133c3","54ff948548c94d23004f1e17","5527280be69c7d0d00047eaf","55273bb14a7ac121004c60f0","55274588975eef3700ca8077","552748df9d4bcd2300d0383d","55274dd79d4bcd2300d0384a","55fa03180e1f1f1700a1f6ce","55fa3172d6f4370d001d99fd"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"2.0.0","version":"2"},"__v":0,"category":{"_id":"55273bb14a7ac121004c60f0","__v":4,"project":"545a65231d018b1400227d8f","version":"54e431e6de9f5b2300fc6dbc","pages":["552742a47d4a441700951707","552747367d4a44170095170f","5527477e5296eb3900185ab8","5527483693f6062d00f316c6"],"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-04-10T02:55:45.195Z","from_sync":false,"order":5,"slug":"address-api","title":"ADDRESS API"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-04-10T03:25:24.426Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"method":"put","results":{"codes":[{"name":"","code":"","language":"json","status":204}]},"auth":"required","params":[{"_id":"552742a47d4a441700951708","ref":"","in":"body","required":false,"desc":"The address id","default":"","type":"int","name":"ID"},{"_id":"54e56a19c2f66835000133c0","ref":"","in":"body","required":false,"desc":"The name of the address (internal use only)","default":"","type":"string","name":"Name"},{"_id":"54e56a19c2f66835000133bf","ref":"","in":"body","required":false,"desc":"Line one of the address","default":"","type":"string","name":"Line1"},{"_id":"54ffd2d9179d042d00514eb4","ref":"","in":"body","required":false,"desc":"Line two of the address","default":"","type":"string","name":"Line2"},{"_id":"54ffd2d9179d042d00514ea9","ref":"","in":"body","required":false,"desc":"Line three of the address","default":"","type":"string","name":"Line3"},{"_id":"55273cf2975eef3700ca8072","ref":"","in":"body","required":false,"desc":"City","default":"","type":"string","name":"City"},{"_id":"55273cf2975eef3700ca8071","ref":"","in":"body","required":false,"desc":"State","default":"","type":"string","name":"State"},{"_id":"55273cf2975eef3700ca8070","ref":"","in":"body","required":false,"desc":"Country","default":"","type":"string","name":"Country"},{"_id":"55273cf2975eef3700ca806f","ref":"","in":"body","required":false,"desc":"Postcode","default":"","type":"string","name":"Post"},{"_id":"55273cf2975eef3700ca806e","ref":"","in":"body","required":false,"desc":"The longitude of the address","default":"","type":"double","name":"Lon"},{"_id":"55273cf2975eef3700ca806d","ref":"","in":"body","required":false,"desc":"The latitude of the address","default":"","type":"double","name":"Lat"},{"_id":"55273cf2975eef3700ca806c","ref":"","in":"body","required":false,"desc":"Should we show a map for this address (google maps)","default":"","type":"string","name":"ShowMap"},{"_id":"55273cf2975eef3700ca806b","ref":"","in":"body","required":true,"desc":"The address status","default":"active","type":"string","name":"Status"}],"url":"/address/:address_id"},"isReference":false,"order":2,"body":"[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"curl -X POST  -u \\\"testuser:moy1zZCscHpx7ei8CzNA\\\" -H \\\"Cache-Control: no-cache\\\"  -d '{\\n\\t\\\"Address\\\": {\\n\\t\\t\\t\\t\\\"Name\\\": \\\"Test address\\\",\\n\\t\\t\\t\\t\\\"Line1\\\": \\\"160 Something Road\\\",\\n\\t\\t\\t\\t\\\"City\\\": \\\"Muckleford South\\\",\\n\\t\\t\\t\\t\\\"Post\\\": \\\"3462\\\",\\n\\t\\t\\t\\t\\\"State\\\": \\\"VICTORIA\\\",\\n\\t\\t\\t\\t\\\"Country\\\": \\\"Australia\\\",\\n\\t\\t\\t\\t\\\"Status\\\": \\\"active\\\"\\n\\t\\t\\t}\\n}' https://api.attendly.net/v2/address/324\",\n      \"language\": \"curl\"\n    }\n  ]\n}\n[/block]","excerpt":"Update an address","slug":"address-update","type":"endpoint","title":"Address update"}

putAddress update

Update an address

Definition

{{ api_url }}{{ page_api_url }}

Parameters

Body Params

ID:
integer
The address id
Name:
string
The name of the address (internal use only)
Line1:
string
Line one of the address
Line2:
string
Line two of the address
Line3:
string
Line three of the address
City:
string
City
State:
string
State
Country:
string
Country
Post:
string
Postcode
Lon:
double
The longitude of the address
Lat:
double
The latitude of the address
ShowMap:
string
Should we show a map for this address (google maps)
Status:
required
stringactive
The address status

Documentation

[block:code] { "codes": [ { "code": "curl -X POST -u \"testuser:moy1zZCscHpx7ei8CzNA\" -H \"Cache-Control: no-cache\" -d '{\n\t\"Address\": {\n\t\t\t\t\"Name\": \"Test address\",\n\t\t\t\t\"Line1\": \"160 Something Road\",\n\t\t\t\t\"City\": \"Muckleford South\",\n\t\t\t\t\"Post\": \"3462\",\n\t\t\t\t\"State\": \"VICTORIA\",\n\t\t\t\t\"Country\": \"Australia\",\n\t\t\t\t\"Status\": \"active\"\n\t\t\t}\n}' https://api.attendly.net/v2/address/324", "language": "curl" } ] } [/block]