{"namespace":"beta","routes":{"\/beta":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"namespace":{"default":"beta","required":false},"context":{"default":"view","required":false}}}],"_links":{"self":[{"href":"https:\/\/patchstorage.com\/api\/beta"}]}},"\/beta\/patches":{"namespace":"beta","methods":["GET","POST"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"after":{"description":"Limit response to patches published after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_after":{"description":"Limit response to posts modified after a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"author":{"description":"Limit result set to patches assigned to specific authors.","type":"array","items":{"type":"integer"},"default":[],"required":false},"author_exclude":{"description":"Ensure result set excludes posts assigned to specific authors.","type":"array","items":{"type":"integer"},"default":[],"required":false},"before":{"description":"Limit response to patches published before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"modified_before":{"description":"Limit response to posts modified before a given ISO8601 compliant date.","type":"string","format":"date-time","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"desc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by object attribute.","type":"string","default":"date","enum":["author","date","id","modified","relevance","slug","title","view_count","like_count","download_count"],"required":false},"search_columns":{"default":[],"description":"Array of column names to be searched.","type":"array","items":{"enum":["post_title","post_content","post_excerpt"],"type":"string"},"required":false},"slug":{"description":"Limit result set to items with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false},"tax_relation":{"description":"Limit result set based on relationship between multiple taxonomies.","type":"string","enum":["AND","OR"],"required":false},"categories":{"description":"Limit result set to all items that have the specified object assigned in the categories taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"categories_exclude":{"description":"Limit result set to all items except those that have the specified object assigned in the categories taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"tags":{"description":"Limit result set to all items that have the specified object assigned in the tags taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"tags_exclude":{"description":"Limit result set to all items except those that have the specified object assigned in the tags taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"licenses":{"description":"Limit result set to all items that have the specified object assigned in the licenses taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"licenses_exclude":{"description":"Limit result set to all items except those that have the specified object assigned in the licenses taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"platforms":{"description":"Limit result set to all items that have the specified object assigned in the platforms taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"platforms_exclude":{"description":"Limit result set to all items except those that have the specified object assigned in the platforms taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"targets":{"description":"Limit result set to all items that have the specified object assigned in the targets taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"targets_exclude":{"description":"Limit result set to all items except those that have the specified object assigned in the targets taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"states":{"description":"Limit result set to all items that have the specified object assigned in the states taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"states_exclude":{"description":"Limit result set to all items except those that have the specified object assigned in the states taxonomy.","type":"array","items":{"type":"integer"},"default":[],"required":false},"uids":{"description":"Limit result set to all items that have specified uids assigned.","type":"array","items":{"type":"string"},"required":false},"liked":{"description":"Limit result set to liked items only.","type":"boolean","default":false,"required":false}}},{"methods":["POST"],"args":{"uids":{"type":"array","items":{"type":"string"},"description":"Platform specific patch uids","required":false},"title":{"type":"string","minLength":5,"maxLength":80,"description":"Patch title.","required":true},"content":{"type":"string","minLength":15,"description":"Patch content.","required":true},"code":{"type":"string","description":"Patch code.","required":false},"source_code_url":{"type":"string","format":"uri","description":"Object source code URL.","required":false},"donate_url":{"type":"string","format":"uri","description":"Object donate URL.","required":false},"preview_url":{"type":"string","format":"uri","description":"Patch preview url.","required":false},"revision":{"description":"Patch revision string.","type":"string","minLength":1,"maxLength":20,"required":true},"custom_license_text":{"description":"Patch custom license text.","type":"string","minLength":3,"required":false},"files":{"description":"Patch file id(s).","type":"array","items":{"type":"integer"},"required":true},"artwork":{"type":"integer","description":"Patch artwork id.","required":true},"tags":{"description":"The slug(s) of object(s) to assign to the tags taxonomy.","type":"array","items":{"type":"string","minLength":2,"maxLength":25},"required":false},"categories":{"description":"The id(s) of object(s) to assign to the category taxonomy.","type":"array","items":{"type":"integer","minimum":2},"required":true},"license":{"description":"The id(s) of object(s) to assign to the license taxonomy.","type":"integer","items":{"type":"integer","minimum":2},"required":true},"platform":{"description":"The id(s) of object(s) to assign to the platform taxonomy.","type":"integer","items":{"type":"integer","minimum":2},"required":true},"state":{"description":"The id(s) of object(s) to assign to the state taxonomy.","type":"integer","items":{"type":"integer","minimum":2},"required":true}}}],"_links":{"self":[{"href":"https:\/\/patchstorage.com\/api\/beta\/patches"}]}},"\/beta\/patches\/(?P<id>[\\d]+)":{"namespace":"beta","methods":["GET","PUT","DELETE"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Unique identifier for the object.","type":"integer","required":false}}},{"methods":["PUT"],"args":{"id":{"description":"Unique identifier for the object.","type":"integer","required":false},"uids":{"type":"array","items":{"type":"string"},"description":"Platform specific patch uids","required":false},"title":{"type":"string","minLength":5,"maxLength":80,"description":"Patch title.","required":true},"content":{"type":"string","minLength":15,"description":"Patch content.","required":true},"code":{"type":"string","description":"Patch code.","required":false},"source_code_url":{"type":"string","format":"uri","description":"Object source code URL.","required":false},"donate_url":{"type":"string","format":"uri","description":"Object donate URL.","required":false},"preview_url":{"type":"string","format":"uri","description":"Patch preview url.","required":false},"revision":{"description":"Patch revision string.","type":"string","minLength":1,"maxLength":20,"required":true},"custom_license_text":{"description":"Patch custom license text.","type":"string","minLength":3,"required":false},"files":{"description":"Patch file id(s).","type":"array","items":{"type":"integer"},"required":true},"artwork":{"type":"integer","description":"Patch artwork id.","required":true},"tags":{"description":"The slug(s) of object(s) to assign to the tags taxonomy.","type":"array","items":{"type":"string","minLength":2,"maxLength":25},"required":false},"categories":{"description":"The id(s) of object(s) to assign to the category taxonomy.","type":"array","items":{"type":"integer","minimum":2},"required":true},"license":{"description":"The id(s) of object(s) to assign to the license taxonomy.","type":"integer","items":{"type":"integer","minimum":2},"required":true},"platform":{"description":"The id(s) of object(s) to assign to the platform taxonomy.","type":"integer","items":{"type":"integer","minimum":2},"required":true},"state":{"description":"The id(s) of object(s) to assign to the state taxonomy.","type":"integer","items":{"type":"integer","minimum":2},"required":true}}},{"methods":["DELETE"],"args":{"id":{"description":"Unique identifier for the object.","type":"integer","required":false}}}]},"\/beta\/patches\/(?P<id>[\\d]+)\/files\/(?P<file_id>[\\d]+)\/download":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":[]}]},"\/beta\/files":{"namespace":"beta","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"file":{"description":"File which will be added to users media.","type":"file","required":false},"target":{"description":"File target unique identifier.","type":"integer","required":false}}}],"_links":{"self":[{"href":"https:\/\/patchstorage.com\/api\/beta\/files"}]}},"\/beta\/files\/(?P<id>[\\d]+)":{"namespace":"beta","methods":["DELETE"],"endpoints":[{"methods":["DELETE"],"args":{"id":{"description":"Unique identifier for the object.","type":"integer","required":false}}}]},"\/beta\/licenses":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by item attribute.","type":"string","default":"name","enum":["id","include","name","slug","count"],"required":false},"hide_empty":{"description":"Whether to hide items not assigned to any patches.","type":"boolean","default":false,"required":false},"slug":{"description":"Limit result set to items with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/patchstorage.com\/api\/beta\/licenses"}]}},"\/beta\/licenses\/(?P<id>[\\d]+)":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Unique identifier for the object.","type":"integer","required":false}}}]},"\/beta\/categories":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by item attribute.","type":"string","default":"name","enum":["id","include","name","slug","count"],"required":false},"hide_empty":{"description":"Whether to hide items not assigned to any patches.","type":"boolean","default":false,"required":false},"parent":{"description":"Limit result set to items assigned to a specific parent.","type":"integer","required":false},"slug":{"description":"Limit result set to items with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/patchstorage.com\/api\/beta\/categories"}]}},"\/beta\/categories\/(?P<id>[\\d]+)":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Unique identifier for the object.","type":"integer","required":false}}}]},"\/beta\/tags":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by item attribute.","type":"string","default":"name","enum":["id","include","name","slug","count"],"required":false},"hide_empty":{"description":"Whether to hide items not assigned to any patches.","type":"boolean","default":false,"required":false},"slug":{"description":"Limit result set to items with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/patchstorage.com\/api\/beta\/tags"}]}},"\/beta\/tags\/(?P<id>[\\d]+)":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Unique identifier for the object.","type":"integer","required":false}}}]},"\/beta\/platforms":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by item attribute.","type":"string","default":"name","enum":["id","include","name","slug","count"],"required":false},"hide_empty":{"description":"Whether to hide items not assigned to any patches.","type":"boolean","default":false,"required":false},"slug":{"description":"Limit result set to items with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/patchstorage.com\/api\/beta\/platforms"}]}},"\/beta\/platforms\/(?P<id>[\\d]+)":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Unique identifier for the object.","type":"integer","required":false}}}]},"\/beta\/states":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by item attribute.","type":"string","default":"name","enum":["id","include","name","slug","count"],"required":false},"hide_empty":{"description":"Whether to hide items not assigned to any patches.","type":"boolean","default":false,"required":false},"slug":{"description":"Limit result set to items with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/patchstorage.com\/api\/beta\/states"}]}},"\/beta\/states\/(?P<id>[\\d]+)":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Unique identifier for the object.","type":"integer","required":false}}}]},"\/beta\/targets":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"page":{"description":"Current page of the collection.","type":"integer","default":1,"minimum":1,"required":false},"per_page":{"description":"Maximum number of items to be returned in result set.","type":"integer","default":10,"minimum":1,"maximum":100,"required":false},"search":{"description":"Limit results to those matching a string.","type":"string","required":false},"exclude":{"description":"Ensure result set excludes specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"include":{"description":"Limit result set to specific IDs.","type":"array","items":{"type":"integer"},"default":[],"required":false},"offset":{"description":"Offset the result set by a specific number of items.","type":"integer","required":false},"order":{"description":"Order sort attribute ascending or descending.","type":"string","default":"asc","enum":["asc","desc"],"required":false},"orderby":{"description":"Sort collection by item attribute.","type":"string","default":"name","enum":["id","include","name","slug","count"],"required":false},"hide_empty":{"description":"Whether to hide items not assigned to any patches.","type":"boolean","default":false,"required":false},"slug":{"description":"Limit result set to items with one or more specific slugs.","type":"array","items":{"type":"string"},"required":false}}}],"_links":{"self":[{"href":"https:\/\/patchstorage.com\/api\/beta\/targets"}]}},"\/beta\/targets\/(?P<id>[\\d]+)":{"namespace":"beta","methods":["GET"],"endpoints":[{"methods":["GET"],"args":{"id":{"description":"Unique identifier for the object.","type":"integer","required":false}}}]},"\/beta\/auth\/token":{"namespace":"beta","methods":["POST"],"endpoints":[{"methods":["POST"],"args":{"username":{"description":"User username.","type":"string","required":true},"password":{"description":"User password.","type":"string","required":true}}}],"_links":{"self":[{"href":"https:\/\/patchstorage.com\/api\/beta\/auth\/token"}]}},"\/beta\/auth\/token\/validate":{"namespace":"beta","methods":["POST"],"endpoints":[{"methods":["POST"],"args":[]}],"_links":{"self":[{"href":"https:\/\/patchstorage.com\/api\/beta\/auth\/token\/validate"}]}}},"_links":{"up":[{"href":"https:\/\/patchstorage.com\/api\/"}]}}