{"action":"created","issue":{"url":"https://api.github.com/repos/aaronpk/Micropub/issues/12","labels_url":"https://api.github.com/repos/aaronpk/Micropub/issues/12/labels{/name}","comments_url":"https://api.github.com/repos/aaronpk/Micropub/issues/12/comments","events_url":"https://api.github.com/repos/aaronpk/Micropub/issues/12/events","html_url":"https://github.com/aaronpk/Micropub/issues/12","id":110885895,"number":12,"title":"\"url\" parameter conflict","user":{"login":"aaronpk","id":113001,"avatar_url":"https://avatars.githubusercontent.com/u/113001?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronpk","html_url":"https://github.com/aaronpk","followers_url":"https://api.github.com/users/aaronpk/followers","following_url":"https://api.github.com/users/aaronpk/following{/other_user}","gists_url":"https://api.github.com/users/aaronpk/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronpk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronpk/subscriptions","organizations_url":"https://api.github.com/users/aaronpk/orgs","repos_url":"https://api.github.com/users/aaronpk/repos","events_url":"https://api.github.com/users/aaronpk/events{/privacy}","received_events_url":"https://api.github.com/users/aaronpk/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-11T22:15:09Z","updated_at":"2015-10-15T18:32:41Z","closed_at":null,"body":"Using the parameter `url` to indicate the post being edited is problematic, since it prevents modifying a property on the post called `url`. This is not a problem for normal \"entry\" posts, since the URL will always be generated by the micropub endpoint. However, other content such as contacts, venues or events will have a URL on the website as well as a URL property that indicates the canonical URL or other URLs of the object.\r\n\r\nExample: editing a contact on my site, to add an alternate URL to their profile.\r\n\r\n```\r\ncurl http://example.com/micropub\r\n  -d mp-action=edit\r\n  -d url=http://aaronparecki.com/tantek   # This is the URL of my copy of the contact\r\n  -d url[]=https://twitter.com/t   # this is the URL I want to add to the contact\r\n```\r\n\r\nObviously this request doesn't make sense. I need an alternate parameter name to use to select the contact being edited.\r\n\r\nSuggestions:\r\n* `mp-url` - following the convention of using `mp-*` as reserved Micropub parameters\r\n* `id` - implies a unique identifier, and is also the parameter used by ActivityStreams\r\n"},"comment":{"url":"https://api.github.com/repos/aaronpk/Micropub/issues/comments/148482185","html_url":"https://github.com/aaronpk/Micropub/issues/12#issuecomment-148482185","issue_url":"https://api.github.com/repos/aaronpk/Micropub/issues/12","id":148482185,"user":{"login":"aaronpk","id":113001,"avatar_url":"https://avatars.githubusercontent.com/u/113001?v=3","gravatar_id":"","url":"https://api.github.com/users/aaronpk","html_url":"https://github.com/aaronpk","followers_url":"https://api.github.com/users/aaronpk/followers","following_url":"https://api.github.com/users/aaronpk/following{/other_user}","gists_url":"https://api.github.com/users/aaronpk/gists{/gist_id}","starred_url":"https://api.github.com/users/aaronpk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaronpk/subscriptions","organizations_url":"https://api.github.com/users/aaronpk/orgs","repos_url":"https://api.github.com/users/aaronpk/repos","events_url":"https://api.github.com/users/aaronpk/events{/privacy}","received_events_url":"https://api.github.com/users/aaronpk/received_events","type":"User","site_admin":false},"created_at":"2015-10-15T18:32:41Z","updated_at":"2015-10-15T18:32:41Z","body":"The \"universal\" aspect of uid came from the microformats wiki on [h-entry](http://microformats.org/wiki/h-entry):\r\n\r\n```\r\nu-uid - universally unique identifier, typically canonical entry URL\r\n```\r\n\r\nAt this point it looks like the options are:\r\n\r\n* `mp-url`\r\n* `mp-id`\r\n\r\nI'm leaning against the `mp-id` option since the implication is that one would have to publish the ID in the page in order for a micropub client to find it, which nobody does yet. The URL of the page is the simpler identifier for it."}}