Advertisement
Guest User

Untitled

a guest
May 2nd, 2017
613
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 440.25 KB | None | 0 0
  1. {
  2. "$schema": "http://interagent.github.io/interagent-hyper-schema",
  3. "type": [
  4. "object"
  5. ],
  6. "definitions": {
  7. "account-feature": {
  8. "description": "An account feature represents a Heroku labs capability that can be enabled or disabled for an account on Heroku.",
  9. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  10. "stability": "production",
  11. "strictProperties": true,
  12. "title": "Heroku Platform API - Account Feature",
  13. "type": [
  14. "object"
  15. ],
  16. "definitions": {
  17. "created_at": {
  18. "description": "when account feature was created",
  19. "example": "2012-01-01T12:00:00Z",
  20. "format": "date-time",
  21. "readOnly": true,
  22. "type": [
  23. "string"
  24. ]
  25. },
  26. "description": {
  27. "description": "description of account feature",
  28. "example": "Causes account to example.",
  29. "readOnly": true,
  30. "type": [
  31. "string"
  32. ]
  33. },
  34. "doc_url": {
  35. "description": "documentation URL of account feature",
  36. "example": "http://devcenter.heroku.com/articles/example",
  37. "readOnly": true,
  38. "type": [
  39. "string"
  40. ]
  41. },
  42. "enabled": {
  43. "description": "whether or not account feature has been enabled",
  44. "example": true,
  45. "readOnly": false,
  46. "type": [
  47. "boolean"
  48. ]
  49. },
  50. "id": {
  51. "description": "unique identifier of account feature",
  52. "example": "01234567-89ab-cdef-0123-456789abcdef",
  53. "format": "uuid",
  54. "readOnly": true,
  55. "type": [
  56. "string"
  57. ]
  58. },
  59. "identity": {
  60. "anyOf": [
  61. {
  62. "$ref": "#/definitions/account-feature/definitions/id"
  63. },
  64. {
  65. "$ref": "#/definitions/account-feature/definitions/name"
  66. }
  67. ]
  68. },
  69. "name": {
  70. "description": "unique name of account feature",
  71. "example": "name",
  72. "readOnly": true,
  73. "type": [
  74. "string"
  75. ]
  76. },
  77. "state": {
  78. "description": "state of account feature",
  79. "example": "public",
  80. "readOnly": true,
  81. "type": [
  82. "string"
  83. ]
  84. },
  85. "updated_at": {
  86. "description": "when account feature was updated",
  87. "example": "2012-01-01T12:00:00Z",
  88. "format": "date-time",
  89. "readOnly": true,
  90. "type": [
  91. "string"
  92. ]
  93. },
  94. "display_name": {
  95. "description": "user readable feature name",
  96. "example": "My Feature",
  97. "readOnly": true,
  98. "type": [
  99. "string"
  100. ]
  101. },
  102. "feedback_email": {
  103. "description": "e-mail to send feedback about the feature",
  104. "example": "feedback@heroku.com",
  105. "readOnly": true,
  106. "type": [
  107. "string"
  108. ]
  109. }
  110. },
  111. "links": [
  112. {
  113. "description": "Info for an existing account feature.",
  114. "href": "/account/features/{(%23%2Fdefinitions%2Faccount-feature%2Fdefinitions%2Fidentity)}",
  115. "method": "GET",
  116. "rel": "self",
  117. "targetSchema": {
  118. "$ref": "#/definitions/account-feature"
  119. },
  120. "title": "Info"
  121. },
  122. {
  123. "description": "List existing account features.",
  124. "href": "/account/features",
  125. "method": "GET",
  126. "rel": "instances",
  127. "targetSchema": {
  128. "items": {
  129. "$ref": "#/definitions/account-feature"
  130. },
  131. "type": [
  132. "array"
  133. ]
  134. },
  135. "title": "List"
  136. },
  137. {
  138. "description": "Update an existing account feature.",
  139. "href": "/account/features/{(%23%2Fdefinitions%2Faccount-feature%2Fdefinitions%2Fidentity)}",
  140. "method": "PATCH",
  141. "rel": "update",
  142. "schema": {
  143. "properties": {
  144. "enabled": {
  145. "$ref": "#/definitions/account-feature/definitions/enabled"
  146. }
  147. },
  148. "required": [
  149. "enabled"
  150. ],
  151. "type": [
  152. "object"
  153. ]
  154. },
  155. "targetSchema": {
  156. "$ref": "#/definitions/account-feature"
  157. },
  158. "title": "Update"
  159. }
  160. ],
  161. "properties": {
  162. "created_at": {
  163. "$ref": "#/definitions/account-feature/definitions/created_at"
  164. },
  165. "description": {
  166. "$ref": "#/definitions/account-feature/definitions/description"
  167. },
  168. "doc_url": {
  169. "$ref": "#/definitions/account-feature/definitions/doc_url"
  170. },
  171. "enabled": {
  172. "$ref": "#/definitions/account-feature/definitions/enabled"
  173. },
  174. "id": {
  175. "$ref": "#/definitions/account-feature/definitions/id"
  176. },
  177. "name": {
  178. "$ref": "#/definitions/account-feature/definitions/name"
  179. },
  180. "state": {
  181. "$ref": "#/definitions/account-feature/definitions/state"
  182. },
  183. "updated_at": {
  184. "$ref": "#/definitions/account-feature/definitions/updated_at"
  185. },
  186. "display_name": {
  187. "$ref": "#/definitions/account-feature/definitions/display_name"
  188. },
  189. "feedback_email": {
  190. "$ref": "#/definitions/account-feature/definitions/feedback_email"
  191. }
  192. }
  193. },
  194. "account": {
  195. "description": "An account represents an individual signed up to use the Heroku platform.",
  196. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  197. "stability": "production",
  198. "strictProperties": true,
  199. "title": "Heroku Platform API - Account",
  200. "type": [
  201. "object"
  202. ],
  203. "definitions": {
  204. "allow_tracking": {
  205. "default": true,
  206. "description": "whether to allow third party web activity tracking",
  207. "example": true,
  208. "readOnly": false,
  209. "type": [
  210. "boolean"
  211. ]
  212. },
  213. "beta": {
  214. "default": false,
  215. "description": "whether allowed to utilize beta Heroku features",
  216. "example": false,
  217. "readOnly": false,
  218. "type": [
  219. "boolean"
  220. ]
  221. },
  222. "created_at": {
  223. "description": "when account was created",
  224. "example": "2012-01-01T12:00:00Z",
  225. "format": "date-time",
  226. "readOnly": true,
  227. "type": [
  228. "string"
  229. ]
  230. },
  231. "email": {
  232. "description": "unique email address of account",
  233. "example": "username@example.com",
  234. "format": "email",
  235. "readOnly": false,
  236. "type": [
  237. "string"
  238. ]
  239. },
  240. "federated": {
  241. "description": "whether the user is federated and belongs to an Identity Provider",
  242. "example": false,
  243. "readOnly": true,
  244. "type": [
  245. "boolean"
  246. ]
  247. },
  248. "id": {
  249. "description": "unique identifier of an account",
  250. "example": "01234567-89ab-cdef-0123-456789abcdef",
  251. "format": "uuid",
  252. "readOnly": true,
  253. "type": [
  254. "string"
  255. ]
  256. },
  257. "identity": {
  258. "anyOf": [
  259. {
  260. "$ref": "#/definitions/account/definitions/email"
  261. },
  262. {
  263. "$ref": "#/definitions/account/definitions/id"
  264. },
  265. {
  266. "$ref": "#/definitions/account/definitions/self"
  267. }
  268. ]
  269. },
  270. "last_login": {
  271. "description": "when account last authorized with Heroku",
  272. "example": "2012-01-01T12:00:00Z",
  273. "format": "date-time",
  274. "readOnly": true,
  275. "type": [
  276. "string",
  277. "null"
  278. ]
  279. },
  280. "name": {
  281. "description": "full name of the account owner",
  282. "example": "Tina Edmonds",
  283. "readOnly": false,
  284. "type": [
  285. "string",
  286. "null"
  287. ]
  288. },
  289. "password": {
  290. "description": "current password on the account",
  291. "example": "currentpassword",
  292. "readOnly": true,
  293. "type": [
  294. "string"
  295. ]
  296. },
  297. "self": {
  298. "description": "Implicit reference to currently authorized user",
  299. "enum": [
  300. "~"
  301. ],
  302. "example": "~",
  303. "readOnly": true,
  304. "type": [
  305. "string"
  306. ]
  307. },
  308. "sms_number": {
  309. "description": "SMS number of account",
  310. "example": "+1 ***-***-1234",
  311. "readOnly": true,
  312. "type": [
  313. "string",
  314. "null"
  315. ]
  316. },
  317. "suspended_at": {
  318. "description": "when account was suspended",
  319. "example": "2012-01-01T12:00:00Z",
  320. "format": "date-time",
  321. "readOnly": true,
  322. "type": [
  323. "string",
  324. "null"
  325. ]
  326. },
  327. "delinquent_at": {
  328. "description": "when account became delinquent",
  329. "example": "2012-01-01T12:00:00Z",
  330. "format": "date-time",
  331. "readOnly": true,
  332. "type": [
  333. "string",
  334. "null"
  335. ]
  336. },
  337. "two_factor_authentication": {
  338. "description": "whether two-factor auth is enabled on the account",
  339. "example": false,
  340. "readOnly": true,
  341. "type": [
  342. "boolean"
  343. ]
  344. },
  345. "updated_at": {
  346. "description": "when account was updated",
  347. "example": "2012-01-01T12:00:00Z",
  348. "format": "date-time",
  349. "readOnly": true,
  350. "type": [
  351. "string"
  352. ]
  353. },
  354. "verified": {
  355. "default": false,
  356. "description": "whether account has been verified with billing information",
  357. "example": false,
  358. "readOnly": true,
  359. "type": [
  360. "boolean"
  361. ]
  362. }
  363. },
  364. "links": [
  365. {
  366. "description": "Info for account.",
  367. "href": "/account",
  368. "method": "GET",
  369. "rel": "self",
  370. "targetSchema": {
  371. "$ref": "#/definitions/account"
  372. },
  373. "title": "Info"
  374. },
  375. {
  376. "description": "Update account.",
  377. "href": "/account",
  378. "method": "PATCH",
  379. "rel": "update",
  380. "schema": {
  381. "properties": {
  382. "allow_tracking": {
  383. "$ref": "#/definitions/account/definitions/allow_tracking"
  384. },
  385. "beta": {
  386. "$ref": "#/definitions/account/definitions/beta"
  387. },
  388. "name": {
  389. "$ref": "#/definitions/account/definitions/name"
  390. }
  391. },
  392. "type": [
  393. "object"
  394. ]
  395. },
  396. "targetSchema": {
  397. "$ref": "#/definitions/account"
  398. },
  399. "title": "Update"
  400. },
  401. {
  402. "description": "Delete account. Note that this action cannot be undone.",
  403. "href": "/account",
  404. "method": "DELETE",
  405. "rel": "destroy",
  406. "targetSchema": {
  407. "$ref": "#/definitions/account"
  408. },
  409. "title": "Delete"
  410. },
  411. {
  412. "description": "Info for account.",
  413. "href": "/users/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}",
  414. "method": "GET",
  415. "rel": "self",
  416. "targetSchema": {
  417. "$ref": "#/definitions/account"
  418. },
  419. "title": "Info"
  420. },
  421. {
  422. "description": "Update account.",
  423. "href": "/users/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}",
  424. "method": "PATCH",
  425. "rel": "update",
  426. "schema": {
  427. "properties": {
  428. "allow_tracking": {
  429. "$ref": "#/definitions/account/definitions/allow_tracking"
  430. },
  431. "beta": {
  432. "$ref": "#/definitions/account/definitions/beta"
  433. },
  434. "name": {
  435. "$ref": "#/definitions/account/definitions/name"
  436. }
  437. },
  438. "type": [
  439. "object"
  440. ]
  441. },
  442. "targetSchema": {
  443. "$ref": "#/definitions/account"
  444. },
  445. "title": "Update"
  446. },
  447. {
  448. "description": "Delete account. Note that this action cannot be undone.",
  449. "href": "/users/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}",
  450. "method": "DELETE",
  451. "rel": "destroy",
  452. "targetSchema": {
  453. "$ref": "#/definitions/account"
  454. },
  455. "title": "Delete"
  456. }
  457. ],
  458. "properties": {
  459. "allow_tracking": {
  460. "$ref": "#/definitions/account/definitions/allow_tracking"
  461. },
  462. "beta": {
  463. "$ref": "#/definitions/account/definitions/beta"
  464. },
  465. "created_at": {
  466. "$ref": "#/definitions/account/definitions/created_at"
  467. },
  468. "email": {
  469. "$ref": "#/definitions/account/definitions/email"
  470. },
  471. "federated": {
  472. "$ref": "#/definitions/account/definitions/federated"
  473. },
  474. "id": {
  475. "$ref": "#/definitions/account/definitions/id"
  476. },
  477. "identity_provider": {
  478. "description": "Identity Provider details for federated users.",
  479. "properties": {
  480. "id": {
  481. "$ref": "#/definitions/identity-provider/definitions/id"
  482. },
  483. "organization": {
  484. "type": [
  485. "object"
  486. ],
  487. "properties": {
  488. "name": {
  489. "$ref": "#/definitions/organization/definitions/name"
  490. }
  491. }
  492. }
  493. },
  494. "type": [
  495. "object",
  496. "null"
  497. ]
  498. },
  499. "last_login": {
  500. "$ref": "#/definitions/account/definitions/last_login"
  501. },
  502. "name": {
  503. "$ref": "#/definitions/account/definitions/name"
  504. },
  505. "sms_number": {
  506. "$ref": "#/definitions/account/definitions/sms_number"
  507. },
  508. "suspended_at": {
  509. "$ref": "#/definitions/account/definitions/suspended_at"
  510. },
  511. "delinquent_at": {
  512. "$ref": "#/definitions/account/definitions/delinquent_at"
  513. },
  514. "two_factor_authentication": {
  515. "$ref": "#/definitions/account/definitions/two_factor_authentication"
  516. },
  517. "updated_at": {
  518. "$ref": "#/definitions/account/definitions/updated_at"
  519. },
  520. "verified": {
  521. "$ref": "#/definitions/account/definitions/verified"
  522. },
  523. "default_organization": {
  524. "description": "organization selected by default",
  525. "properties": {
  526. "id": {
  527. "$ref": "#/definitions/organization/definitions/id"
  528. },
  529. "name": {
  530. "$ref": "#/definitions/organization/definitions/name"
  531. }
  532. },
  533. "strictProperties": true,
  534. "type": [
  535. "object",
  536. "null"
  537. ]
  538. }
  539. }
  540. },
  541. "add-on-action": {
  542. "description": "Add-on Actions are lifecycle operations for add-on provisioning and deprovisioning. They allow whitelisted add-on providers to (de)provision add-ons in the background and then report back when (de)provisioning is complete.",
  543. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  544. "stability": "development",
  545. "strictProperties": true,
  546. "title": "Heroku Platform API - Add-on Action",
  547. "type": [
  548. "object"
  549. ],
  550. "definitions": {
  551. },
  552. "links": [
  553. {
  554. "description": "Mark an add-on as provisioned for use.",
  555. "href": "/addons/{(%23%2Fdefinitions%2Fadd-on%2Fdefinitions%2Fidentity)}/actions/provision",
  556. "method": "POST",
  557. "rel": "create",
  558. "targetSchema": {
  559. "$ref": "#/definitions/add-on"
  560. },
  561. "title": "Create - Provision"
  562. },
  563. {
  564. "description": "Mark an add-on as deprovisioned.",
  565. "href": "/addons/{(%23%2Fdefinitions%2Fadd-on%2Fdefinitions%2Fidentity)}/actions/deprovision",
  566. "method": "POST",
  567. "rel": "create",
  568. "targetSchema": {
  569. "$ref": "#/definitions/add-on"
  570. },
  571. "title": "Create - Deprovision"
  572. }
  573. ],
  574. "properties": {
  575. }
  576. },
  577. "add-on-attachment": {
  578. "description": "An add-on attachment represents a connection between an app and an add-on that it has been given access to.",
  579. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  580. "stability": "prototype",
  581. "strictProperties": true,
  582. "title": "Heroku Platform API - Add-on Attachment",
  583. "type": [
  584. "object"
  585. ],
  586. "definitions": {
  587. "created_at": {
  588. "description": "when add-on attachment was created",
  589. "example": "2012-01-01T12:00:00Z",
  590. "format": "date-time",
  591. "readOnly": true,
  592. "type": [
  593. "string"
  594. ]
  595. },
  596. "id": {
  597. "description": "unique identifier of this add-on attachment",
  598. "example": "01234567-89ab-cdef-0123-456789abcdef",
  599. "format": "uuid",
  600. "readOnly": true,
  601. "type": [
  602. "string"
  603. ]
  604. },
  605. "force": {
  606. "default": false,
  607. "description": "whether or not to allow existing attachment with same name to be replaced",
  608. "example": false,
  609. "readOnly": false,
  610. "type": [
  611. "boolean"
  612. ]
  613. },
  614. "identity": {
  615. "anyOf": [
  616. {
  617. "$ref": "#/definitions/add-on-attachment/definitions/id"
  618. }
  619. ]
  620. },
  621. "scopedIdentity": {
  622. "anyOf": [
  623. {
  624. "$ref": "#/definitions/add-on-attachment/definitions/id"
  625. },
  626. {
  627. "$ref": "#/definitions/add-on-attachment/definitions/name"
  628. }
  629. ]
  630. },
  631. "name": {
  632. "description": "unique name for this add-on attachment to this app",
  633. "example": "DATABASE",
  634. "readOnly": true,
  635. "type": [
  636. "string"
  637. ]
  638. },
  639. "namespace": {
  640. "description": "attachment namespace",
  641. "example": "role:analytics",
  642. "readOnly": true,
  643. "type": [
  644. "null",
  645. "string"
  646. ]
  647. },
  648. "updated_at": {
  649. "description": "when add-on attachment was updated",
  650. "example": "2012-01-01T12:00:00Z",
  651. "format": "date-time",
  652. "readOnly": true,
  653. "type": [
  654. "string"
  655. ]
  656. },
  657. "web_url": {
  658. "description": "URL for logging into web interface of add-on in attached app context",
  659. "example": "https://postgres.heroku.com/databases/01234567-89ab-cdef-0123-456789abcdef",
  660. "format": "uri",
  661. "readOnly": true,
  662. "type": [
  663. "null",
  664. "string"
  665. ]
  666. }
  667. },
  668. "links": [
  669. {
  670. "description": "Create a new add-on attachment.",
  671. "href": "/addon-attachments",
  672. "method": "POST",
  673. "rel": "create",
  674. "schema": {
  675. "properties": {
  676. "addon": {
  677. "$ref": "#/definitions/add-on/definitions/identity"
  678. },
  679. "app": {
  680. "$ref": "#/definitions/app/definitions/identity"
  681. },
  682. "force": {
  683. "$ref": "#/definitions/add-on-attachment/definitions/force"
  684. },
  685. "name": {
  686. "$ref": "#/definitions/add-on-attachment/definitions/name"
  687. },
  688. "namespace": {
  689. "$ref": "#/definitions/add-on-attachment/definitions/namespace"
  690. }
  691. },
  692. "required": [
  693. "addon",
  694. "app"
  695. ],
  696. "type": [
  697. "object"
  698. ]
  699. },
  700. "targetSchema": {
  701. "$ref": "#/definitions/add-on-attachment"
  702. },
  703. "title": "Create"
  704. },
  705. {
  706. "description": "Delete an existing add-on attachment.",
  707. "href": "/addon-attachments/{(%23%2Fdefinitions%2Fadd-on-attachment%2Fdefinitions%2Fidentity)}",
  708. "method": "DELETE",
  709. "rel": "destroy",
  710. "targetSchema": {
  711. "$ref": "#/definitions/add-on-attachment"
  712. },
  713. "title": "Delete"
  714. },
  715. {
  716. "description": "Info for existing add-on attachment.",
  717. "href": "/addon-attachments/{(%23%2Fdefinitions%2Fadd-on-attachment%2Fdefinitions%2Fidentity)}",
  718. "method": "GET",
  719. "rel": "self",
  720. "targetSchema": {
  721. "$ref": "#/definitions/add-on-attachment"
  722. },
  723. "title": "Info"
  724. },
  725. {
  726. "description": "List existing add-on attachments.",
  727. "href": "/addon-attachments",
  728. "method": "GET",
  729. "rel": "instances",
  730. "targetSchema": {
  731. "items": {
  732. "$ref": "#/definitions/add-on-attachment"
  733. },
  734. "type": [
  735. "array"
  736. ]
  737. },
  738. "title": "List"
  739. },
  740. {
  741. "description": "List existing add-on attachments for an add-on.",
  742. "href": "/addons/{(%23%2Fdefinitions%2Fadd-on%2Fdefinitions%2Fidentity)}/addon-attachments",
  743. "method": "GET",
  744. "rel": "instances",
  745. "targetSchema": {
  746. "items": {
  747. "$ref": "#/definitions/add-on-attachment"
  748. },
  749. "type": [
  750. "array"
  751. ]
  752. },
  753. "title": "List by Add-on"
  754. },
  755. {
  756. "description": "List existing add-on attachments for an app.",
  757. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/addon-attachments",
  758. "method": "GET",
  759. "rel": "instances",
  760. "targetSchema": {
  761. "items": {
  762. "$ref": "#/definitions/add-on-attachment"
  763. },
  764. "type": [
  765. "array"
  766. ]
  767. },
  768. "title": "List by App"
  769. },
  770. {
  771. "description": "Info for existing add-on attachment for an app.",
  772. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/addon-attachments/{(%23%2Fdefinitions%2Fadd-on-attachment%2Fdefinitions%2FscopedIdentity)}",
  773. "method": "GET",
  774. "rel": "self",
  775. "targetSchema": {
  776. "$ref": "#/definitions/add-on-attachment"
  777. },
  778. "title": "Info by App"
  779. }
  780. ],
  781. "properties": {
  782. "addon": {
  783. "description": "identity of add-on",
  784. "properties": {
  785. "id": {
  786. "$ref": "#/definitions/add-on/definitions/id"
  787. },
  788. "name": {
  789. "$ref": "#/definitions/add-on/definitions/name"
  790. },
  791. "app": {
  792. "description": "billing application associated with this add-on",
  793. "type": [
  794. "object"
  795. ],
  796. "properties": {
  797. "id": {
  798. "$ref": "#/definitions/app/definitions/id"
  799. },
  800. "name": {
  801. "$ref": "#/definitions/app/definitions/name"
  802. }
  803. },
  804. "strictProperties": true
  805. },
  806. "plan": {
  807. "description": "identity of add-on plan",
  808. "properties": {
  809. "id": {
  810. "$ref": "#/definitions/plan/definitions/id"
  811. },
  812. "name": {
  813. "$ref": "#/definitions/plan/definitions/name"
  814. }
  815. },
  816. "strictProperties": true,
  817. "type": [
  818. "object"
  819. ]
  820. }
  821. },
  822. "additionalProperties": false,
  823. "required": [
  824. "id",
  825. "name",
  826. "app"
  827. ],
  828. "type": [
  829. "object"
  830. ]
  831. },
  832. "app": {
  833. "description": "application that is attached to add-on",
  834. "properties": {
  835. "id": {
  836. "$ref": "#/definitions/app/definitions/id"
  837. },
  838. "name": {
  839. "$ref": "#/definitions/app/definitions/name"
  840. }
  841. },
  842. "strictProperties": true,
  843. "type": [
  844. "object"
  845. ]
  846. },
  847. "created_at": {
  848. "$ref": "#/definitions/add-on-attachment/definitions/created_at"
  849. },
  850. "id": {
  851. "$ref": "#/definitions/add-on-attachment/definitions/id"
  852. },
  853. "name": {
  854. "$ref": "#/definitions/add-on-attachment/definitions/name"
  855. },
  856. "namespace": {
  857. "$ref": "#/definitions/add-on-attachment/definitions/namespace"
  858. },
  859. "updated_at": {
  860. "$ref": "#/definitions/add-on-attachment/definitions/updated_at"
  861. },
  862. "web_url": {
  863. "$ref": "#/definitions/add-on-attachment/definitions/web_url"
  864. }
  865. }
  866. },
  867. "add-on-config": {
  868. "description": "Configuration of an Add-on",
  869. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  870. "stability": "development",
  871. "strictProperties": true,
  872. "title": "Heroku Platform API - Add-on Config",
  873. "type": [
  874. "object"
  875. ],
  876. "definitions": {
  877. "identity": {
  878. "anyOf": [
  879. {
  880. "$ref": "#/definitions/add-on-config/definitions/name"
  881. }
  882. ]
  883. },
  884. "name": {
  885. "description": "unique name of the config",
  886. "example": "FOO",
  887. "type": [
  888. "string"
  889. ]
  890. },
  891. "value": {
  892. "description": "value of the config",
  893. "example": "bar",
  894. "type": [
  895. "string",
  896. "null"
  897. ]
  898. }
  899. },
  900. "links": [
  901. {
  902. "description": "Get an add-on's config. Accessible by customers with access and by the add-on partner providing this add-on.",
  903. "href": "/addons/{(%23%2Fdefinitions%2Fadd-on%2Fdefinitions%2Fidentity)}/config",
  904. "method": "GET",
  905. "rel": "instances",
  906. "targetSchema": {
  907. "items": {
  908. "$ref": "#/definitions/add-on-config"
  909. },
  910. "type": [
  911. "array"
  912. ]
  913. },
  914. "title": "List"
  915. },
  916. {
  917. "description": "Update an add-on's config. Can only be accessed by the add-on partner providing this add-on.",
  918. "href": "/addons/{(%23%2Fdefinitions%2Fadd-on%2Fdefinitions%2Fidentity)}/config",
  919. "method": "PATCH",
  920. "rel": "update",
  921. "schema": {
  922. "properties": {
  923. "config": {
  924. "items": {
  925. "$ref": "#/definitions/add-on-config"
  926. },
  927. "type": [
  928. "array"
  929. ]
  930. }
  931. },
  932. "type": [
  933. "object"
  934. ]
  935. },
  936. "targetSchema": {
  937. "type": [
  938. "array"
  939. ],
  940. "items": {
  941. "$ref": "#/definitions/add-on-config"
  942. }
  943. },
  944. "title": "Update"
  945. }
  946. ],
  947. "properties": {
  948. "name": {
  949. "$ref": "#/definitions/add-on-config/definitions/name"
  950. },
  951. "value": {
  952. "$ref": "#/definitions/add-on-config/definitions/value"
  953. }
  954. }
  955. },
  956. "add-on-plan-action": {
  957. "description": "Add-on Plan Actions are Provider functionality for specific add-on installations",
  958. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  959. "stability": "development",
  960. "strictProperties": true,
  961. "title": "Heroku Platform API - Add-on Plan Action",
  962. "type": [
  963. "object"
  964. ],
  965. "definitions": {
  966. "id": {
  967. "description": "a unique identifier",
  968. "example": "01234567-89ab-cdef-0123-456789abcdef",
  969. "format": "uuid",
  970. "readOnly": true,
  971. "type": [
  972. "string"
  973. ]
  974. },
  975. "identity": {
  976. "$ref": "#/definitions/add-on-plan-action/definitions/id"
  977. },
  978. "label": {
  979. "description": "the display text shown in Dashboard",
  980. "example": "Example",
  981. "readOnly": true,
  982. "type": [
  983. "string"
  984. ]
  985. },
  986. "action": {
  987. "description": "identifier of the action to take that is sent via SSO",
  988. "example": "example",
  989. "readOnly": true,
  990. "type": [
  991. "string"
  992. ]
  993. },
  994. "url": {
  995. "description": "absolute URL to use instead of an action",
  996. "example": "http://example.com?resource_id=:resource_id",
  997. "readOnly": true,
  998. "type": [
  999. "string"
  1000. ]
  1001. },
  1002. "requires_owner": {
  1003. "description": "if the action requires the user to own the app",
  1004. "example": true,
  1005. "readOnly": true,
  1006. "type": [
  1007. "boolean"
  1008. ]
  1009. }
  1010. },
  1011. "properties": {
  1012. "id": {
  1013. "$ref": "#/definitions/add-on-plan-action/definitions/id"
  1014. },
  1015. "label": {
  1016. "$ref": "#/definitions/add-on-plan-action/definitions/label"
  1017. },
  1018. "action": {
  1019. "$ref": "#/definitions/add-on-plan-action/definitions/action"
  1020. },
  1021. "url": {
  1022. "$ref": "#/definitions/add-on-plan-action/definitions/url"
  1023. },
  1024. "requires_owner": {
  1025. "$ref": "#/definitions/add-on-plan-action/definitions/requires_owner"
  1026. }
  1027. }
  1028. },
  1029. "add-on-region-capability": {
  1030. "description": "Add-on region capabilities represent the relationship between an Add-on Service and a specific Region. Only Beta and GA add-ons are returned by these endpoints.",
  1031. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  1032. "stability": "production",
  1033. "strictProperties": true,
  1034. "title": "Heroku Platform API - Add-on Region Capability",
  1035. "type": [
  1036. "object"
  1037. ],
  1038. "definitions": {
  1039. "id": {
  1040. "description": "unique identifier of this add-on-region-capability",
  1041. "example": "01234567-89ab-cdef-0123-456789abcdef",
  1042. "format": "uuid",
  1043. "readOnly": true,
  1044. "type": [
  1045. "string"
  1046. ]
  1047. },
  1048. "supports_private_networking": {
  1049. "description": "whether the add-on can be installed to a Space",
  1050. "readOnly": true,
  1051. "type": [
  1052. "boolean"
  1053. ]
  1054. },
  1055. "identity": {
  1056. "$ref": "#/definitions/add-on-region-capability/definitions/id"
  1057. }
  1058. },
  1059. "links": [
  1060. {
  1061. "description": "List all existing add-on region capabilities.",
  1062. "href": "/addon-region-capabilities",
  1063. "method": "GET",
  1064. "rel": "instances",
  1065. "targetSchema": {
  1066. "items": {
  1067. "$ref": "#/definitions/add-on-region-capability"
  1068. },
  1069. "type": [
  1070. "array"
  1071. ]
  1072. },
  1073. "title": "List"
  1074. },
  1075. {
  1076. "description": "List existing add-on region capabilities for an add-on-service",
  1077. "href": "/addon-services/{(%23%2Fdefinitions%2Fadd-on-service%2Fdefinitions%2Fidentity)}/region-capabilities",
  1078. "method": "GET",
  1079. "rel": "instances",
  1080. "targetSchema": {
  1081. "items": {
  1082. "$ref": "#/definitions/add-on-region-capability"
  1083. },
  1084. "type": [
  1085. "array"
  1086. ]
  1087. },
  1088. "title": "List by Add-on Service"
  1089. },
  1090. {
  1091. "description": "List existing add-on region capabilities for a region.",
  1092. "href": "/regions/{(%23%2Fdefinitions%2Fregion%2Fdefinitions%2Fidentity)}/addon-region-capabilities",
  1093. "method": "GET",
  1094. "rel": "instances",
  1095. "targetSchema": {
  1096. "items": {
  1097. "$ref": "#/definitions/add-on-region-capability"
  1098. },
  1099. "type": [
  1100. "array"
  1101. ]
  1102. },
  1103. "title": "List"
  1104. }
  1105. ],
  1106. "properties": {
  1107. "id": {
  1108. "$ref": "#/definitions/add-on-region-capability/definitions/id"
  1109. },
  1110. "supports_private_networking": {
  1111. "$ref": "#/definitions/add-on-region-capability/definitions/supports_private_networking"
  1112. },
  1113. "addon_service": {
  1114. "$ref": "#/definitions/add-on-service"
  1115. },
  1116. "region": {
  1117. "$ref": "#/definitions/region"
  1118. }
  1119. }
  1120. },
  1121. "add-on-service": {
  1122. "description": "Add-on services represent add-ons that may be provisioned for apps. Endpoints under add-on services can be accessed without authentication.",
  1123. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  1124. "stability": "production",
  1125. "strictProperties": true,
  1126. "title": "Heroku Platform API - Add-on Service",
  1127. "type": [
  1128. "object"
  1129. ],
  1130. "definitions": {
  1131. "cli_plugin_name": {
  1132. "description": "npm package name of the add-on service's Heroku CLI plugin",
  1133. "example": "heroku-papertrail",
  1134. "readOnly": true,
  1135. "type": [
  1136. "string",
  1137. "null"
  1138. ]
  1139. },
  1140. "created_at": {
  1141. "description": "when add-on-service was created",
  1142. "example": "2012-01-01T12:00:00Z",
  1143. "format": "date-time",
  1144. "readOnly": true,
  1145. "type": [
  1146. "string"
  1147. ]
  1148. },
  1149. "human_name": {
  1150. "description": "human-readable name of the add-on service provider",
  1151. "example": "Heroku Postgres",
  1152. "readOnly": true,
  1153. "type": [
  1154. "string"
  1155. ]
  1156. },
  1157. "id": {
  1158. "description": "unique identifier of this add-on-service",
  1159. "example": "01234567-89ab-cdef-0123-456789abcdef",
  1160. "format": "uuid",
  1161. "readOnly": true,
  1162. "type": [
  1163. "string"
  1164. ]
  1165. },
  1166. "identity": {
  1167. "anyOf": [
  1168. {
  1169. "$ref": "#/definitions/add-on-service/definitions/id"
  1170. },
  1171. {
  1172. "$ref": "#/definitions/add-on-service/definitions/name"
  1173. }
  1174. ]
  1175. },
  1176. "name": {
  1177. "description": "unique name of this add-on-service",
  1178. "example": "heroku-postgresql",
  1179. "readOnly": true,
  1180. "type": [
  1181. "string"
  1182. ]
  1183. },
  1184. "state": {
  1185. "description": "release status for add-on service",
  1186. "enum": [
  1187. "alpha",
  1188. "beta",
  1189. "ga",
  1190. "shutdown"
  1191. ],
  1192. "example": "ga",
  1193. "readOnly": true,
  1194. "type": [
  1195. "string"
  1196. ]
  1197. },
  1198. "supports_multiple_installations": {
  1199. "default": false,
  1200. "description": "whether or not apps can have access to more than one instance of this add-on at the same time",
  1201. "example": false,
  1202. "readOnly": true,
  1203. "type": [
  1204. "boolean"
  1205. ]
  1206. },
  1207. "supports_sharing": {
  1208. "default": false,
  1209. "description": "whether or not apps can have access to add-ons billed to a different app",
  1210. "example": false,
  1211. "readOnly": true,
  1212. "type": [
  1213. "boolean"
  1214. ]
  1215. },
  1216. "updated_at": {
  1217. "description": "when add-on-service was updated",
  1218. "example": "2012-01-01T12:00:00Z",
  1219. "format": "date-time",
  1220. "readOnly": true,
  1221. "type": [
  1222. "string"
  1223. ]
  1224. }
  1225. },
  1226. "links": [
  1227. {
  1228. "description": "Info for existing add-on-service.",
  1229. "href": "/addon-services/{(%23%2Fdefinitions%2Fadd-on-service%2Fdefinitions%2Fidentity)}",
  1230. "method": "GET",
  1231. "rel": "self",
  1232. "targetSchema": {
  1233. "$ref": "#/definitions/add-on-service"
  1234. },
  1235. "title": "Info"
  1236. },
  1237. {
  1238. "description": "List existing add-on-services.",
  1239. "href": "/addon-services",
  1240. "method": "GET",
  1241. "rel": "instances",
  1242. "targetSchema": {
  1243. "items": {
  1244. "$ref": "#/definitions/add-on-service"
  1245. },
  1246. "type": [
  1247. "array"
  1248. ]
  1249. },
  1250. "title": "List"
  1251. }
  1252. ],
  1253. "properties": {
  1254. "cli_plugin_name": {
  1255. "$ref": "#/definitions/add-on-service/definitions/cli_plugin_name"
  1256. },
  1257. "created_at": {
  1258. "$ref": "#/definitions/add-on-service/definitions/created_at"
  1259. },
  1260. "human_name": {
  1261. "$ref": "#/definitions/add-on-service/definitions/human_name"
  1262. },
  1263. "id": {
  1264. "$ref": "#/definitions/add-on-service/definitions/id"
  1265. },
  1266. "name": {
  1267. "$ref": "#/definitions/add-on-service/definitions/name"
  1268. },
  1269. "state": {
  1270. "$ref": "#/definitions/add-on-service/definitions/state"
  1271. },
  1272. "supports_multiple_installations": {
  1273. "$ref": "#/definitions/add-on-service/definitions/supports_multiple_installations"
  1274. },
  1275. "supports_sharing": {
  1276. "$ref": "#/definitions/add-on-service/definitions/supports_sharing"
  1277. },
  1278. "updated_at": {
  1279. "$ref": "#/definitions/add-on-service/definitions/updated_at"
  1280. }
  1281. }
  1282. },
  1283. "add-on": {
  1284. "description": "Add-ons represent add-ons that have been provisioned and attached to one or more apps.",
  1285. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  1286. "stability": "production",
  1287. "strictProperties": true,
  1288. "title": "Heroku Platform API - Add-on",
  1289. "type": [
  1290. "object"
  1291. ],
  1292. "definitions": {
  1293. "actions": {
  1294. "description": "provider actions for this specific add-on",
  1295. "type": [
  1296. "array"
  1297. ],
  1298. "items": {
  1299. "type": [
  1300. "object"
  1301. ]
  1302. },
  1303. "readOnly": true,
  1304. "properties": {
  1305. "id": {
  1306. "$ref": "#/definitions/add-on-plan-action/definitions/id"
  1307. },
  1308. "label": {
  1309. "$ref": "#/definitions/add-on-plan-action/definitions/label"
  1310. },
  1311. "action": {
  1312. "$ref": "#/definitions/add-on-plan-action/definitions/action"
  1313. },
  1314. "url": {
  1315. "$ref": "#/definitions/add-on-plan-action/definitions/url"
  1316. },
  1317. "requires_owner": {
  1318. "$ref": "#/definitions/add-on-plan-action/definitions/requires_owner"
  1319. }
  1320. }
  1321. },
  1322. "config_vars": {
  1323. "description": "config vars exposed to the owning app by this add-on",
  1324. "example": [
  1325. "FOO",
  1326. "BAZ"
  1327. ],
  1328. "items": {
  1329. "type": [
  1330. "string"
  1331. ]
  1332. },
  1333. "readOnly": true,
  1334. "type": [
  1335. "array"
  1336. ]
  1337. },
  1338. "created_at": {
  1339. "description": "when add-on was created",
  1340. "example": "2012-01-01T12:00:00Z",
  1341. "format": "date-time",
  1342. "readOnly": true,
  1343. "type": [
  1344. "string"
  1345. ]
  1346. },
  1347. "id": {
  1348. "description": "unique identifier of add-on",
  1349. "example": "01234567-89ab-cdef-0123-456789abcdef",
  1350. "format": "uuid",
  1351. "readOnly": true,
  1352. "type": [
  1353. "string"
  1354. ]
  1355. },
  1356. "identity": {
  1357. "anyOf": [
  1358. {
  1359. "$ref": "#/definitions/add-on/definitions/id"
  1360. },
  1361. {
  1362. "$ref": "#/definitions/add-on/definitions/name"
  1363. }
  1364. ]
  1365. },
  1366. "name": {
  1367. "description": "globally unique name of the add-on",
  1368. "example": "acme-inc-primary-database",
  1369. "pattern": "^[a-zA-Z][A-Za-z0-9_-]+$",
  1370. "readOnly": true,
  1371. "type": [
  1372. "string"
  1373. ]
  1374. },
  1375. "provider_id": {
  1376. "description": "id of this add-on with its provider",
  1377. "example": "abcd1234",
  1378. "readOnly": true,
  1379. "type": [
  1380. "string"
  1381. ]
  1382. },
  1383. "state": {
  1384. "description": "state in the add-on's lifecycle",
  1385. "enum": [
  1386. "provisioning",
  1387. "provisioned",
  1388. "deprovisioned"
  1389. ],
  1390. "example": "provisioned",
  1391. "readOnly": true,
  1392. "type": [
  1393. "string"
  1394. ]
  1395. },
  1396. "updated_at": {
  1397. "description": "when add-on was updated",
  1398. "example": "2012-01-01T12:00:00Z",
  1399. "format": "date-time",
  1400. "readOnly": true,
  1401. "type": [
  1402. "string"
  1403. ]
  1404. },
  1405. "web_url": {
  1406. "description": "URL for logging into web interface of add-on (e.g. a dashboard)",
  1407. "example": "https://postgres.heroku.com/databases/01234567-89ab-cdef-0123-456789abcdef",
  1408. "format": "uri",
  1409. "readOnly": true,
  1410. "type": [
  1411. "null",
  1412. "string"
  1413. ]
  1414. }
  1415. },
  1416. "links": [
  1417. {
  1418. "description": "Create a new add-on.",
  1419. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/addons",
  1420. "method": "POST",
  1421. "rel": "create",
  1422. "schema": {
  1423. "properties": {
  1424. "attachment": {
  1425. "description": "name for add-on's initial attachment",
  1426. "example": {
  1427. "name": "DATABASE_FOLLOWER"
  1428. },
  1429. "name": {
  1430. "$ref": "#/definitions/add-on-attachment/definitions/name"
  1431. },
  1432. "type": [
  1433. "object"
  1434. ]
  1435. },
  1436. "config": {
  1437. "additionalProperties": false,
  1438. "description": "custom add-on provisioning options",
  1439. "example": {
  1440. "db-version": "1.2.3"
  1441. },
  1442. "patternProperties": {
  1443. "^\\w+$": {
  1444. "type": [
  1445. "string"
  1446. ]
  1447. }
  1448. },
  1449. "type": [
  1450. "object"
  1451. ]
  1452. },
  1453. "plan": {
  1454. "$ref": "#/definitions/plan/definitions/identity"
  1455. }
  1456. },
  1457. "required": [
  1458. "plan"
  1459. ],
  1460. "type": [
  1461. "object"
  1462. ]
  1463. },
  1464. "targetSchema": {
  1465. "$ref": "#/definitions/add-on"
  1466. },
  1467. "title": "Create"
  1468. },
  1469. {
  1470. "description": "Delete an existing add-on.",
  1471. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/addons/{(%23%2Fdefinitions%2Fadd-on%2Fdefinitions%2Fidentity)}",
  1472. "method": "DELETE",
  1473. "rel": "destroy",
  1474. "targetSchema": {
  1475. "$ref": "#/definitions/add-on"
  1476. },
  1477. "title": "Delete"
  1478. },
  1479. {
  1480. "description": "Info for an existing add-on.",
  1481. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/addons/{(%23%2Fdefinitions%2Fadd-on%2Fdefinitions%2Fidentity)}",
  1482. "method": "GET",
  1483. "rel": "self",
  1484. "targetSchema": {
  1485. "$ref": "#/definitions/add-on"
  1486. },
  1487. "title": "Info"
  1488. },
  1489. {
  1490. "description": "List all existing add-ons.",
  1491. "href": "/addons",
  1492. "method": "GET",
  1493. "rel": "instances",
  1494. "targetSchema": {
  1495. "items": {
  1496. "$ref": "#/definitions/add-on"
  1497. },
  1498. "type": [
  1499. "array"
  1500. ]
  1501. },
  1502. "title": "List"
  1503. },
  1504. {
  1505. "description": "Info for an existing add-on.",
  1506. "href": "/addons/{(%23%2Fdefinitions%2Fadd-on%2Fdefinitions%2Fidentity)}",
  1507. "method": "GET",
  1508. "rel": "self",
  1509. "targetSchema": {
  1510. "$ref": "#/definitions/add-on"
  1511. },
  1512. "title": "Info"
  1513. },
  1514. {
  1515. "description": "List all existing add-ons a user has access to",
  1516. "href": "/users/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/addons",
  1517. "method": "GET",
  1518. "rel": "instances",
  1519. "targetSchema": {
  1520. "items": {
  1521. "$ref": "#/definitions/add-on"
  1522. },
  1523. "type": [
  1524. "array"
  1525. ]
  1526. },
  1527. "title": "List by User"
  1528. },
  1529. {
  1530. "description": "List existing add-ons for an app.",
  1531. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/addons",
  1532. "method": "GET",
  1533. "rel": "instances",
  1534. "targetSchema": {
  1535. "items": {
  1536. "$ref": "#/definitions/add-on"
  1537. },
  1538. "type": [
  1539. "array"
  1540. ]
  1541. },
  1542. "title": "List by App"
  1543. },
  1544. {
  1545. "description": "List add-ons used across all Team apps",
  1546. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/addons",
  1547. "method": "GET",
  1548. "rel": "instances",
  1549. "targetSchema": {
  1550. "items": {
  1551. "$ref": "#/definitions/add-on"
  1552. },
  1553. "type": [
  1554. "array"
  1555. ]
  1556. },
  1557. "title": "List For Team"
  1558. },
  1559. {
  1560. "description": "Change add-on plan. Some add-ons may not support changing plans. In that case, an error will be returned.",
  1561. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/addons/{(%23%2Fdefinitions%2Fadd-on%2Fdefinitions%2Fidentity)}",
  1562. "method": "PATCH",
  1563. "rel": "update",
  1564. "schema": {
  1565. "properties": {
  1566. "plan": {
  1567. "$ref": "#/definitions/plan/definitions/identity"
  1568. }
  1569. },
  1570. "required": [
  1571. "plan"
  1572. ],
  1573. "type": [
  1574. "object"
  1575. ]
  1576. },
  1577. "title": "Update"
  1578. }
  1579. ],
  1580. "properties": {
  1581. "actions": {
  1582. "$ref": "#/definitions/add-on/definitions/actions"
  1583. },
  1584. "addon_service": {
  1585. "description": "identity of add-on service",
  1586. "properties": {
  1587. "id": {
  1588. "$ref": "#/definitions/add-on-service/definitions/id"
  1589. },
  1590. "name": {
  1591. "$ref": "#/definitions/add-on-service/definitions/name"
  1592. }
  1593. },
  1594. "strictProperties": true,
  1595. "type": [
  1596. "object"
  1597. ]
  1598. },
  1599. "app": {
  1600. "description": "billing application associated with this add-on",
  1601. "type": [
  1602. "object"
  1603. ],
  1604. "properties": {
  1605. "id": {
  1606. "$ref": "#/definitions/app/definitions/id"
  1607. },
  1608. "name": {
  1609. "$ref": "#/definitions/app/definitions/name"
  1610. }
  1611. },
  1612. "strictProperties": true
  1613. },
  1614. "config_vars": {
  1615. "$ref": "#/definitions/add-on/definitions/config_vars"
  1616. },
  1617. "created_at": {
  1618. "$ref": "#/definitions/add-on/definitions/created_at"
  1619. },
  1620. "id": {
  1621. "$ref": "#/definitions/add-on/definitions/id"
  1622. },
  1623. "name": {
  1624. "$ref": "#/definitions/add-on/definitions/name"
  1625. },
  1626. "plan": {
  1627. "description": "identity of add-on plan",
  1628. "properties": {
  1629. "id": {
  1630. "$ref": "#/definitions/plan/definitions/id"
  1631. },
  1632. "name": {
  1633. "$ref": "#/definitions/plan/definitions/name"
  1634. }
  1635. },
  1636. "strictProperties": true,
  1637. "type": [
  1638. "object"
  1639. ]
  1640. },
  1641. "provider_id": {
  1642. "$ref": "#/definitions/add-on/definitions/provider_id"
  1643. },
  1644. "state": {
  1645. "$ref": "#/definitions/add-on/definitions/state"
  1646. },
  1647. "updated_at": {
  1648. "$ref": "#/definitions/add-on/definitions/updated_at"
  1649. },
  1650. "web_url": {
  1651. "$ref": "#/definitions/add-on/definitions/web_url"
  1652. }
  1653. }
  1654. },
  1655. "app-feature": {
  1656. "description": "An app feature represents a Heroku labs capability that can be enabled or disabled for an app on Heroku.",
  1657. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  1658. "stability": "production",
  1659. "strictProperties": true,
  1660. "title": "Heroku Platform API - App Feature",
  1661. "type": [
  1662. "object"
  1663. ],
  1664. "definitions": {
  1665. "created_at": {
  1666. "description": "when app feature was created",
  1667. "example": "2012-01-01T12:00:00Z",
  1668. "format": "date-time",
  1669. "readOnly": true,
  1670. "type": [
  1671. "string"
  1672. ]
  1673. },
  1674. "description": {
  1675. "description": "description of app feature",
  1676. "example": "Causes app to example.",
  1677. "readOnly": true,
  1678. "type": [
  1679. "string"
  1680. ]
  1681. },
  1682. "doc_url": {
  1683. "description": "documentation URL of app feature",
  1684. "example": "http://devcenter.heroku.com/articles/example",
  1685. "readOnly": true,
  1686. "type": [
  1687. "string"
  1688. ]
  1689. },
  1690. "enabled": {
  1691. "description": "whether or not app feature has been enabled",
  1692. "example": true,
  1693. "readOnly": false,
  1694. "type": [
  1695. "boolean"
  1696. ]
  1697. },
  1698. "id": {
  1699. "description": "unique identifier of app feature",
  1700. "example": "01234567-89ab-cdef-0123-456789abcdef",
  1701. "format": "uuid",
  1702. "readOnly": true,
  1703. "type": [
  1704. "string"
  1705. ]
  1706. },
  1707. "identity": {
  1708. "anyOf": [
  1709. {
  1710. "$ref": "#/definitions/app-feature/definitions/id"
  1711. },
  1712. {
  1713. "$ref": "#/definitions/app-feature/definitions/name"
  1714. }
  1715. ]
  1716. },
  1717. "name": {
  1718. "description": "unique name of app feature",
  1719. "example": "name",
  1720. "readOnly": true,
  1721. "type": [
  1722. "string"
  1723. ]
  1724. },
  1725. "state": {
  1726. "description": "state of app feature",
  1727. "example": "public",
  1728. "readOnly": true,
  1729. "type": [
  1730. "string"
  1731. ]
  1732. },
  1733. "updated_at": {
  1734. "description": "when app feature was updated",
  1735. "example": "2012-01-01T12:00:00Z",
  1736. "format": "date-time",
  1737. "readOnly": true,
  1738. "type": [
  1739. "string"
  1740. ]
  1741. },
  1742. "display_name": {
  1743. "description": "user readable feature name",
  1744. "example": "My Feature",
  1745. "readOnly": true,
  1746. "type": [
  1747. "string"
  1748. ]
  1749. },
  1750. "feedback_email": {
  1751. "description": "e-mail to send feedback about the feature",
  1752. "example": "feedback@heroku.com",
  1753. "readOnly": true,
  1754. "type": [
  1755. "string"
  1756. ]
  1757. }
  1758. },
  1759. "links": [
  1760. {
  1761. "description": "Info for an existing app feature.",
  1762. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/features/{(%23%2Fdefinitions%2Fapp-feature%2Fdefinitions%2Fidentity)}",
  1763. "method": "GET",
  1764. "rel": "self",
  1765. "targetSchema": {
  1766. "$ref": "#/definitions/app-feature"
  1767. },
  1768. "title": "Info"
  1769. },
  1770. {
  1771. "description": "List existing app features.",
  1772. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/features",
  1773. "method": "GET",
  1774. "rel": "instances",
  1775. "targetSchema": {
  1776. "items": {
  1777. "$ref": "#/definitions/app-feature"
  1778. },
  1779. "type": [
  1780. "array"
  1781. ]
  1782. },
  1783. "title": "List"
  1784. },
  1785. {
  1786. "description": "Update an existing app feature.",
  1787. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/features/{(%23%2Fdefinitions%2Fapp-feature%2Fdefinitions%2Fidentity)}",
  1788. "method": "PATCH",
  1789. "rel": "update",
  1790. "schema": {
  1791. "properties": {
  1792. "enabled": {
  1793. "$ref": "#/definitions/app-feature/definitions/enabled"
  1794. }
  1795. },
  1796. "required": [
  1797. "enabled"
  1798. ],
  1799. "type": [
  1800. "object"
  1801. ]
  1802. },
  1803. "targetSchema": {
  1804. "$ref": "#/definitions/app-feature"
  1805. },
  1806. "title": "Update"
  1807. }
  1808. ],
  1809. "properties": {
  1810. "created_at": {
  1811. "$ref": "#/definitions/app-feature/definitions/created_at"
  1812. },
  1813. "description": {
  1814. "$ref": "#/definitions/app-feature/definitions/description"
  1815. },
  1816. "doc_url": {
  1817. "$ref": "#/definitions/app-feature/definitions/doc_url"
  1818. },
  1819. "enabled": {
  1820. "$ref": "#/definitions/app-feature/definitions/enabled"
  1821. },
  1822. "id": {
  1823. "$ref": "#/definitions/app-feature/definitions/id"
  1824. },
  1825. "name": {
  1826. "$ref": "#/definitions/app-feature/definitions/name"
  1827. },
  1828. "state": {
  1829. "$ref": "#/definitions/app-feature/definitions/state"
  1830. },
  1831. "updated_at": {
  1832. "$ref": "#/definitions/app-feature/definitions/updated_at"
  1833. },
  1834. "display_name": {
  1835. "$ref": "#/definitions/app-feature/definitions/display_name"
  1836. },
  1837. "feedback_email": {
  1838. "$ref": "#/definitions/app-feature/definitions/feedback_email"
  1839. }
  1840. }
  1841. },
  1842. "app-formation-set": {
  1843. "description": "App formation set describes the combination of process types with their quantities and sizes as well as application process tier",
  1844. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  1845. "stability": "development",
  1846. "strictProperties": true,
  1847. "title": "Heroku Platform API - Application Formation Set",
  1848. "type": [
  1849. "object"
  1850. ],
  1851. "properties": {
  1852. "description": {
  1853. "description": "a string representation of the formation set",
  1854. "example": "web@2:Standard-2X worker@3:Performance-M",
  1855. "readOnly": true,
  1856. "type": [
  1857. "string"
  1858. ]
  1859. },
  1860. "process_tier": {
  1861. "description": "application process tier",
  1862. "enum": [
  1863. "production",
  1864. "traditional",
  1865. "free",
  1866. "hobby",
  1867. "private"
  1868. ],
  1869. "example": "production",
  1870. "readOnly": true,
  1871. "type": [
  1872. "string"
  1873. ]
  1874. },
  1875. "app": {
  1876. "description": "app being described by the formation-set",
  1877. "properties": {
  1878. "name": {
  1879. "$ref": "#/definitions/app/definitions/name"
  1880. },
  1881. "id": {
  1882. "$ref": "#/definitions/app/definitions/id"
  1883. }
  1884. },
  1885. "type": [
  1886. "object"
  1887. ]
  1888. },
  1889. "updated_at": {
  1890. "description": "last time fomation-set was updated",
  1891. "example": "2012-01-01T12:00:00Z",
  1892. "format": "date-time",
  1893. "readOnly": true,
  1894. "type": [
  1895. "string"
  1896. ]
  1897. }
  1898. }
  1899. },
  1900. "app-setup": {
  1901. "description": "An app setup represents an app on Heroku that is setup using an environment, addons, and scripts described in an app.json manifest file.",
  1902. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  1903. "stability": "production",
  1904. "strictProperties": true,
  1905. "title": "Heroku Setup API - App Setup",
  1906. "type": [
  1907. "object"
  1908. ],
  1909. "definitions": {
  1910. "id": {
  1911. "description": "unique identifier of app setup",
  1912. "example": "01234567-89ab-cdef-0123-456789abcdef",
  1913. "readOnly": true,
  1914. "type": [
  1915. "string"
  1916. ],
  1917. "format": "uuid"
  1918. },
  1919. "identity": {
  1920. "anyOf": [
  1921. {
  1922. "$ref": "#/definitions/app-setup/definitions/id"
  1923. }
  1924. ]
  1925. },
  1926. "buildpack_override": {
  1927. "description": "a buildpack override",
  1928. "properties": {
  1929. "url": {
  1930. "description": "location of the buildpack",
  1931. "example": "https://example.com/buildpack.tgz",
  1932. "type": [
  1933. "string"
  1934. ]
  1935. }
  1936. },
  1937. "type": [
  1938. "object"
  1939. ]
  1940. },
  1941. "created_at": {
  1942. "description": "when app setup was created",
  1943. "example": "2012-01-01T12:00:00Z",
  1944. "readOnly": true,
  1945. "type": [
  1946. "string"
  1947. ],
  1948. "format": "date-time"
  1949. },
  1950. "updated_at": {
  1951. "description": "when app setup was updated",
  1952. "example": "2012-01-01T12:00:00Z",
  1953. "readOnly": true,
  1954. "type": [
  1955. "string"
  1956. ],
  1957. "format": "date-time"
  1958. },
  1959. "status": {
  1960. "description": "the overall status of app setup",
  1961. "example": "failed",
  1962. "enum": [
  1963. "failed",
  1964. "pending",
  1965. "succeeded"
  1966. ],
  1967. "readOnly": true,
  1968. "type": [
  1969. "string"
  1970. ]
  1971. },
  1972. "resolved_success_url": {
  1973. "description": "fully qualified success url",
  1974. "example": "https://example.herokuapp.com/welcome",
  1975. "readOnly": true,
  1976. "type": [
  1977. "string",
  1978. "null"
  1979. ]
  1980. },
  1981. "failure_message": {
  1982. "description": "reason that app setup has failed",
  1983. "example": "invalid app.json",
  1984. "readOnly": true,
  1985. "type": [
  1986. "string",
  1987. "null"
  1988. ]
  1989. },
  1990. "manifest_errors": {
  1991. "description": "errors associated with invalid app.json manifest file",
  1992. "example": [
  1993. "config var FOO is required"
  1994. ],
  1995. "readOnly": true,
  1996. "items": {
  1997. "type": [
  1998. "string"
  1999. ]
  2000. },
  2001. "type": [
  2002. "array"
  2003. ]
  2004. },
  2005. "overrides": {
  2006. "description": "overrides of keys in the app.json manifest file",
  2007. "example": {
  2008. "buildpacks": [
  2009. {
  2010. "url": "https://example.com/buildpack.tgz"
  2011. }
  2012. ],
  2013. "env": {
  2014. "FOO": "bar",
  2015. "BAZ": "qux"
  2016. }
  2017. },
  2018. "properties": {
  2019. "buildpacks": {
  2020. "description": "overrides the buildpacks specified in the app.json manifest file",
  2021. "example": [
  2022. {
  2023. "url": "https://example.com/buildpack.tgz"
  2024. }
  2025. ],
  2026. "items": {
  2027. "$ref": "#/definitions/app-setup/definitions/buildpack_override"
  2028. },
  2029. "type": [
  2030. "array"
  2031. ]
  2032. },
  2033. "env": {
  2034. "description": "overrides of the env specified in the app.json manifest file",
  2035. "example": {
  2036. "FOO": "bar",
  2037. "BAZ": "qux"
  2038. },
  2039. "readOnly": true,
  2040. "additionalProperties": false,
  2041. "patternProperties": {
  2042. "^\\w+$": {
  2043. "type": [
  2044. "string"
  2045. ]
  2046. }
  2047. },
  2048. "type": [
  2049. "object"
  2050. ]
  2051. }
  2052. },
  2053. "type": [
  2054. "object"
  2055. ]
  2056. },
  2057. "postdeploy": {
  2058. "description": "result of postdeploy script",
  2059. "type": [
  2060. "object",
  2061. "null"
  2062. ],
  2063. "properties": {
  2064. "output": {
  2065. "description": "output of the postdeploy script",
  2066. "example": "assets precompiled",
  2067. "readOnly": true,
  2068. "type": [
  2069. "string"
  2070. ]
  2071. },
  2072. "exit_code": {
  2073. "description": "The exit code of the postdeploy script",
  2074. "example": 1,
  2075. "readOnly": true,
  2076. "type": [
  2077. "integer"
  2078. ]
  2079. }
  2080. },
  2081. "readOnly": true
  2082. }
  2083. },
  2084. "properties": {
  2085. "id": {
  2086. "$ref": "#/definitions/app-setup/definitions/id"
  2087. },
  2088. "created_at": {
  2089. "$ref": "#/definitions/app-setup/definitions/created_at"
  2090. },
  2091. "updated_at": {
  2092. "$ref": "#/definitions/app-setup/definitions/updated_at"
  2093. },
  2094. "status": {
  2095. "$ref": "#/definitions/app-setup/definitions/status"
  2096. },
  2097. "failure_message": {
  2098. "$ref": "#/definitions/app-setup/definitions/failure_message"
  2099. },
  2100. "app": {
  2101. "description": "identity of app",
  2102. "strictProperties": true,
  2103. "type": [
  2104. "object"
  2105. ],
  2106. "properties": {
  2107. "id": {
  2108. "$ref": "#/definitions/app/definitions/id"
  2109. },
  2110. "name": {
  2111. "$ref": "#/definitions/app/definitions/name"
  2112. }
  2113. }
  2114. },
  2115. "build": {
  2116. "description": "identity and status of build",
  2117. "strictProperties": true,
  2118. "type": [
  2119. "null",
  2120. "object"
  2121. ],
  2122. "properties": {
  2123. "id": {
  2124. "$ref": "#/definitions/build/definitions/id"
  2125. },
  2126. "status": {
  2127. "$ref": "#/definitions/build/definitions/status"
  2128. },
  2129. "output_stream_url": {
  2130. "$ref": "#/definitions/build/definitions/output_stream_url"
  2131. }
  2132. }
  2133. },
  2134. "manifest_errors": {
  2135. "$ref": "#/definitions/app-setup/definitions/manifest_errors"
  2136. },
  2137. "postdeploy": {
  2138. "$ref": "#/definitions/app-setup/definitions/postdeploy"
  2139. },
  2140. "resolved_success_url": {
  2141. "$ref": "#/definitions/app-setup/definitions/resolved_success_url"
  2142. }
  2143. },
  2144. "links": [
  2145. {
  2146. "description": "Create a new app setup from a gzipped tar archive containing an app.json manifest file.",
  2147. "title": "Create",
  2148. "rel": "create",
  2149. "method": "POST",
  2150. "href": "/app-setups",
  2151. "schema": {
  2152. "required": [
  2153. "source_blob"
  2154. ],
  2155. "type": [
  2156. "object"
  2157. ],
  2158. "properties": {
  2159. "app": {
  2160. "description": "optional parameters for created app",
  2161. "properties": {
  2162. "locked": {
  2163. "$ref": "#/definitions/organization-app/definitions/locked"
  2164. },
  2165. "name": {
  2166. "$ref": "#/definitions/app/definitions/name"
  2167. },
  2168. "organization": {
  2169. "$ref": "#/definitions/organization/definitions/name"
  2170. },
  2171. "personal": {
  2172. "$ref": "#/definitions/organization-app/definitions/personal"
  2173. },
  2174. "region": {
  2175. "$ref": "#/definitions/region/definitions/name"
  2176. },
  2177. "space": {
  2178. "$ref": "#/definitions/space/definitions/name"
  2179. },
  2180. "stack": {
  2181. "$ref": "#/definitions/stack/definitions/name"
  2182. }
  2183. },
  2184. "type": [
  2185. "object"
  2186. ]
  2187. },
  2188. "source_blob": {
  2189. "description": "gzipped tarball of source code containing app.json manifest file",
  2190. "properties": {
  2191. "checksum": {
  2192. "description": "an optional checksum of the gzipped tarball for verifying its integrity",
  2193. "example": "SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  2194. "readOnly": true,
  2195. "type": [
  2196. "null",
  2197. "string"
  2198. ]
  2199. },
  2200. "url": {
  2201. "description": "URL of gzipped tarball of source code containing app.json manifest file",
  2202. "example": "https://example.com/source.tgz?token=xyz",
  2203. "readOnly": true,
  2204. "type": [
  2205. "string"
  2206. ]
  2207. },
  2208. "version": {
  2209. "description": "Version of the gzipped tarball.",
  2210. "example": "v1.3.0",
  2211. "readOnly": true,
  2212. "type": [
  2213. "string",
  2214. "null"
  2215. ]
  2216. }
  2217. },
  2218. "type": [
  2219. "object"
  2220. ]
  2221. },
  2222. "overrides": {
  2223. "$ref": "#/definitions/app-setup/definitions/overrides"
  2224. }
  2225. }
  2226. },
  2227. "targetSchema": {
  2228. "$ref": "#/definitions/app-setup"
  2229. }
  2230. },
  2231. {
  2232. "description": "Get the status of an app setup.",
  2233. "title": "Info",
  2234. "rel": "self",
  2235. "method": "GET",
  2236. "href": "/app-setups/{(%23%2Fdefinitions%2Fapp-setup%2Fdefinitions%2Fidentity)}",
  2237. "targetSchema": {
  2238. "$ref": "#/definitions/app-setup"
  2239. }
  2240. }
  2241. ]
  2242. },
  2243. "app-transfer": {
  2244. "description": "An app transfer represents a two party interaction for transferring ownership of an app.",
  2245. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  2246. "stability": "production",
  2247. "strictProperties": true,
  2248. "title": "Heroku Platform API - App Transfer",
  2249. "type": [
  2250. "object"
  2251. ],
  2252. "definitions": {
  2253. "created_at": {
  2254. "description": "when app transfer was created",
  2255. "example": "2012-01-01T12:00:00Z",
  2256. "format": "date-time",
  2257. "readOnly": true,
  2258. "type": [
  2259. "string"
  2260. ]
  2261. },
  2262. "id": {
  2263. "description": "unique identifier of app transfer",
  2264. "example": "01234567-89ab-cdef-0123-456789abcdef",
  2265. "format": "uuid",
  2266. "readOnly": true,
  2267. "type": [
  2268. "string"
  2269. ]
  2270. },
  2271. "identity": {
  2272. "anyOf": [
  2273. {
  2274. "$ref": "#/definitions/app-transfer/definitions/id"
  2275. },
  2276. {
  2277. "$ref": "#/definitions/app/definitions/name"
  2278. }
  2279. ]
  2280. },
  2281. "silent": {
  2282. "default": false,
  2283. "description": "whether to suppress email notification when transferring apps",
  2284. "example": false,
  2285. "readOnly": true,
  2286. "type": [
  2287. "boolean"
  2288. ]
  2289. },
  2290. "state": {
  2291. "description": "the current state of an app transfer",
  2292. "enum": [
  2293. "pending",
  2294. "accepted",
  2295. "declined"
  2296. ],
  2297. "example": "pending",
  2298. "readOnly": true,
  2299. "type": [
  2300. "string"
  2301. ]
  2302. },
  2303. "updated_at": {
  2304. "description": "when app transfer was updated",
  2305. "example": "2012-01-01T12:00:00Z",
  2306. "format": "date-time",
  2307. "readOnly": true,
  2308. "type": [
  2309. "string"
  2310. ]
  2311. }
  2312. },
  2313. "links": [
  2314. {
  2315. "description": "Create a new app transfer.",
  2316. "href": "/account/app-transfers",
  2317. "method": "POST",
  2318. "rel": "create",
  2319. "schema": {
  2320. "properties": {
  2321. "app": {
  2322. "$ref": "#/definitions/app/definitions/identity"
  2323. },
  2324. "recipient": {
  2325. "$ref": "#/definitions/account/definitions/identity"
  2326. },
  2327. "silent": {
  2328. "$ref": "#/definitions/app-transfer/definitions/silent"
  2329. }
  2330. },
  2331. "required": [
  2332. "app",
  2333. "recipient"
  2334. ],
  2335. "type": [
  2336. "object"
  2337. ]
  2338. },
  2339. "targetSchema": {
  2340. "$ref": "#/definitions/app-transfer"
  2341. },
  2342. "title": "Create"
  2343. },
  2344. {
  2345. "description": "Delete an existing app transfer",
  2346. "href": "/account/app-transfers/{(%23%2Fdefinitions%2Fapp-transfer%2Fdefinitions%2Fidentity)}",
  2347. "method": "DELETE",
  2348. "rel": "destroy",
  2349. "targetSchema": {
  2350. "$ref": "#/definitions/app-transfer"
  2351. },
  2352. "title": "Delete"
  2353. },
  2354. {
  2355. "description": "Info for existing app transfer.",
  2356. "href": "/account/app-transfers/{(%23%2Fdefinitions%2Fapp-transfer%2Fdefinitions%2Fidentity)}",
  2357. "method": "GET",
  2358. "rel": "self",
  2359. "targetSchema": {
  2360. "$ref": "#/definitions/app-transfer"
  2361. },
  2362. "title": "Info"
  2363. },
  2364. {
  2365. "description": "List existing apps transfers.",
  2366. "href": "/account/app-transfers",
  2367. "method": "GET",
  2368. "rel": "instances",
  2369. "targetSchema": {
  2370. "items": {
  2371. "$ref": "#/definitions/app-transfer"
  2372. },
  2373. "type": [
  2374. "array"
  2375. ]
  2376. },
  2377. "title": "List"
  2378. },
  2379. {
  2380. "description": "Update an existing app transfer.",
  2381. "href": "/account/app-transfers/{(%23%2Fdefinitions%2Fapp-transfer%2Fdefinitions%2Fidentity)}",
  2382. "method": "PATCH",
  2383. "rel": "update",
  2384. "schema": {
  2385. "properties": {
  2386. "state": {
  2387. "$ref": "#/definitions/app-transfer/definitions/state"
  2388. }
  2389. },
  2390. "required": [
  2391. "state"
  2392. ],
  2393. "type": [
  2394. "object"
  2395. ]
  2396. },
  2397. "targetSchema": {
  2398. "$ref": "#/definitions/app-transfer"
  2399. },
  2400. "title": "Update"
  2401. }
  2402. ],
  2403. "properties": {
  2404. "app": {
  2405. "description": "app involved in the transfer",
  2406. "properties": {
  2407. "name": {
  2408. "$ref": "#/definitions/app/definitions/name"
  2409. },
  2410. "id": {
  2411. "$ref": "#/definitions/app/definitions/id"
  2412. }
  2413. },
  2414. "type": [
  2415. "object"
  2416. ]
  2417. },
  2418. "created_at": {
  2419. "$ref": "#/definitions/app-transfer/definitions/created_at"
  2420. },
  2421. "id": {
  2422. "$ref": "#/definitions/app-transfer/definitions/id"
  2423. },
  2424. "owner": {
  2425. "description": "identity of the owner of the transfer",
  2426. "properties": {
  2427. "email": {
  2428. "$ref": "#/definitions/account/definitions/email"
  2429. },
  2430. "id": {
  2431. "$ref": "#/definitions/account/definitions/id"
  2432. }
  2433. },
  2434. "strictProperties": true,
  2435. "type": [
  2436. "object"
  2437. ]
  2438. },
  2439. "recipient": {
  2440. "description": "identity of the recipient of the transfer",
  2441. "properties": {
  2442. "email": {
  2443. "$ref": "#/definitions/account/definitions/email"
  2444. },
  2445. "id": {
  2446. "$ref": "#/definitions/account/definitions/id"
  2447. }
  2448. },
  2449. "strictProperties": true,
  2450. "type": [
  2451. "object"
  2452. ]
  2453. },
  2454. "state": {
  2455. "$ref": "#/definitions/app-transfer/definitions/state"
  2456. },
  2457. "updated_at": {
  2458. "$ref": "#/definitions/app-transfer/definitions/updated_at"
  2459. }
  2460. }
  2461. },
  2462. "app": {
  2463. "description": "An app represents the program that you would like to deploy and run on Heroku.",
  2464. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  2465. "stability": "production",
  2466. "strictProperties": true,
  2467. "title": "Heroku Platform API - App",
  2468. "type": [
  2469. "object"
  2470. ],
  2471. "definitions": {
  2472. "archived_at": {
  2473. "description": "when app was archived",
  2474. "example": "2012-01-01T12:00:00Z",
  2475. "format": "date-time",
  2476. "readOnly": true,
  2477. "type": [
  2478. "null",
  2479. "string"
  2480. ]
  2481. },
  2482. "buildpack_provided_description": {
  2483. "description": "description from buildpack of app",
  2484. "example": "Ruby/Rack",
  2485. "readOnly": true,
  2486. "type": [
  2487. "null",
  2488. "string"
  2489. ]
  2490. },
  2491. "created_at": {
  2492. "description": "when app was created",
  2493. "example": "2012-01-01T12:00:00Z",
  2494. "format": "date-time",
  2495. "readOnly": true,
  2496. "type": [
  2497. "string"
  2498. ]
  2499. },
  2500. "git_url": {
  2501. "description": "git repo URL of app",
  2502. "example": "https://git.heroku.com/example.git",
  2503. "pattern": "^https://git\\.heroku\\.com/[a-z][a-z0-9-]{2,29}\\.git$",
  2504. "readOnly": true,
  2505. "type": [
  2506. "string"
  2507. ]
  2508. },
  2509. "id": {
  2510. "description": "unique identifier of app",
  2511. "example": "01234567-89ab-cdef-0123-456789abcdef",
  2512. "format": "uuid",
  2513. "readOnly": true,
  2514. "type": [
  2515. "string"
  2516. ]
  2517. },
  2518. "identity": {
  2519. "anyOf": [
  2520. {
  2521. "$ref": "#/definitions/app/definitions/id"
  2522. },
  2523. {
  2524. "$ref": "#/definitions/app/definitions/name"
  2525. }
  2526. ]
  2527. },
  2528. "maintenance": {
  2529. "default": false,
  2530. "description": "maintenance status of app",
  2531. "example": false,
  2532. "readOnly": false,
  2533. "type": [
  2534. "boolean"
  2535. ]
  2536. },
  2537. "name": {
  2538. "description": "unique name of app",
  2539. "example": "example",
  2540. "pattern": "^[a-z][a-z0-9-]{2,29}$",
  2541. "readOnly": false,
  2542. "type": [
  2543. "string"
  2544. ]
  2545. },
  2546. "released_at": {
  2547. "default": null,
  2548. "description": "when app was released",
  2549. "example": "2012-01-01T12:00:00Z",
  2550. "format": "date-time",
  2551. "readOnly": true,
  2552. "type": [
  2553. "null",
  2554. "string"
  2555. ]
  2556. },
  2557. "repo_size": {
  2558. "default": null,
  2559. "description": "git repo size in bytes of app",
  2560. "example": 0,
  2561. "readOnly": true,
  2562. "type": [
  2563. "integer",
  2564. "null"
  2565. ]
  2566. },
  2567. "slug_size": {
  2568. "default": null,
  2569. "description": "slug size in bytes of app",
  2570. "example": 0,
  2571. "readOnly": true,
  2572. "type": [
  2573. "integer",
  2574. "null"
  2575. ]
  2576. },
  2577. "updated_at": {
  2578. "description": "when app was updated",
  2579. "example": "2012-01-01T12:00:00Z",
  2580. "format": "date-time",
  2581. "readOnly": true,
  2582. "type": [
  2583. "string"
  2584. ]
  2585. },
  2586. "web_url": {
  2587. "description": "web URL of app",
  2588. "example": "https://example.herokuapp.com/",
  2589. "format": "uri",
  2590. "pattern": "^https?://[a-z][a-z0-9-]{3,30}\\.herokuapp\\.com/$",
  2591. "readOnly": true,
  2592. "type": [
  2593. "string"
  2594. ]
  2595. },
  2596. "acm": {
  2597. "description": "ACM status of this app",
  2598. "default": false,
  2599. "example": false,
  2600. "readOnly": true,
  2601. "type": [
  2602. "boolean"
  2603. ]
  2604. }
  2605. },
  2606. "links": [
  2607. {
  2608. "description": "Create a new app.",
  2609. "href": "/apps",
  2610. "method": "POST",
  2611. "rel": "create",
  2612. "schema": {
  2613. "properties": {
  2614. "name": {
  2615. "$ref": "#/definitions/app/definitions/name"
  2616. },
  2617. "region": {
  2618. "$ref": "#/definitions/region/definitions/identity"
  2619. },
  2620. "stack": {
  2621. "$ref": "#/definitions/stack/definitions/identity"
  2622. }
  2623. },
  2624. "type": [
  2625. "object"
  2626. ]
  2627. },
  2628. "targetSchema": {
  2629. "$ref": "#/definitions/app"
  2630. },
  2631. "title": "Create"
  2632. },
  2633. {
  2634. "description": "Delete an existing app.",
  2635. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}",
  2636. "method": "DELETE",
  2637. "rel": "destroy",
  2638. "targetSchema": {
  2639. "$ref": "#/definitions/app"
  2640. },
  2641. "title": "Delete"
  2642. },
  2643. {
  2644. "description": "Info for existing app.",
  2645. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}",
  2646. "method": "GET",
  2647. "rel": "self",
  2648. "targetSchema": {
  2649. "$ref": "#/definitions/app"
  2650. },
  2651. "title": "Info"
  2652. },
  2653. {
  2654. "description": "List existing apps.",
  2655. "href": "/apps",
  2656. "method": "GET",
  2657. "ranges": [
  2658. "id",
  2659. "name",
  2660. "updated_at"
  2661. ],
  2662. "rel": "instances",
  2663. "targetSchema": {
  2664. "items": {
  2665. "$ref": "#/definitions/app"
  2666. },
  2667. "type": [
  2668. "array"
  2669. ]
  2670. },
  2671. "title": "List"
  2672. },
  2673. {
  2674. "description": "List owned and collaborated apps (excludes team apps).",
  2675. "href": "/users/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/apps",
  2676. "method": "GET",
  2677. "ranges": [
  2678. "id",
  2679. "name",
  2680. "updated_at"
  2681. ],
  2682. "rel": "instances",
  2683. "targetSchema": {
  2684. "items": {
  2685. "$ref": "#/definitions/app"
  2686. },
  2687. "type": [
  2688. "array"
  2689. ]
  2690. },
  2691. "title": "List Owned and Collaborated"
  2692. },
  2693. {
  2694. "description": "Update an existing app.",
  2695. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}",
  2696. "method": "PATCH",
  2697. "rel": "update",
  2698. "schema": {
  2699. "properties": {
  2700. "build_stack": {
  2701. "$ref": "#/definitions/stack/definitions/identity"
  2702. },
  2703. "maintenance": {
  2704. "$ref": "#/definitions/app/definitions/maintenance"
  2705. },
  2706. "name": {
  2707. "$ref": "#/definitions/app/definitions/name"
  2708. }
  2709. },
  2710. "type": [
  2711. "object"
  2712. ]
  2713. },
  2714. "targetSchema": {
  2715. "$ref": "#/definitions/app"
  2716. },
  2717. "title": "Update"
  2718. }
  2719. ],
  2720. "properties": {
  2721. "archived_at": {
  2722. "$ref": "#/definitions/app/definitions/archived_at"
  2723. },
  2724. "buildpack_provided_description": {
  2725. "$ref": "#/definitions/app/definitions/buildpack_provided_description"
  2726. },
  2727. "build_stack": {
  2728. "description": "identity of the stack that will be used for new builds",
  2729. "properties": {
  2730. "id": {
  2731. "$ref": "#/definitions/stack/definitions/id"
  2732. },
  2733. "name": {
  2734. "$ref": "#/definitions/stack/definitions/name"
  2735. }
  2736. },
  2737. "strictProperties": true,
  2738. "type": [
  2739. "object"
  2740. ]
  2741. },
  2742. "created_at": {
  2743. "$ref": "#/definitions/app/definitions/created_at"
  2744. },
  2745. "git_url": {
  2746. "$ref": "#/definitions/app/definitions/git_url"
  2747. },
  2748. "id": {
  2749. "$ref": "#/definitions/app/definitions/id"
  2750. },
  2751. "maintenance": {
  2752. "$ref": "#/definitions/app/definitions/maintenance"
  2753. },
  2754. "name": {
  2755. "$ref": "#/definitions/app/definitions/name"
  2756. },
  2757. "owner": {
  2758. "description": "identity of app owner",
  2759. "properties": {
  2760. "email": {
  2761. "$ref": "#/definitions/account/definitions/email"
  2762. },
  2763. "id": {
  2764. "$ref": "#/definitions/account/definitions/id"
  2765. }
  2766. },
  2767. "strictProperties": true,
  2768. "type": [
  2769. "object"
  2770. ]
  2771. },
  2772. "organization": {
  2773. "description": "identity of organization",
  2774. "properties": {
  2775. "id": {
  2776. "$ref": "#/definitions/organization/definitions/id"
  2777. },
  2778. "name": {
  2779. "$ref": "#/definitions/organization/definitions/name"
  2780. }
  2781. },
  2782. "type": [
  2783. "null",
  2784. "object"
  2785. ]
  2786. },
  2787. "team": {
  2788. "description": "identity of team",
  2789. "properties": {
  2790. "id": {
  2791. "$ref": "#/definitions/team/definitions/id"
  2792. },
  2793. "name": {
  2794. "$ref": "#/definitions/team/definitions/name"
  2795. }
  2796. },
  2797. "type": [
  2798. "null",
  2799. "object"
  2800. ]
  2801. },
  2802. "region": {
  2803. "description": "identity of app region",
  2804. "properties": {
  2805. "id": {
  2806. "$ref": "#/definitions/region/definitions/id"
  2807. },
  2808. "name": {
  2809. "$ref": "#/definitions/region/definitions/name"
  2810. }
  2811. },
  2812. "strictProperties": true,
  2813. "type": [
  2814. "object"
  2815. ]
  2816. },
  2817. "released_at": {
  2818. "$ref": "#/definitions/app/definitions/released_at"
  2819. },
  2820. "repo_size": {
  2821. "$ref": "#/definitions/app/definitions/repo_size"
  2822. },
  2823. "slug_size": {
  2824. "$ref": "#/definitions/app/definitions/slug_size"
  2825. },
  2826. "space": {
  2827. "description": "identity of space",
  2828. "properties": {
  2829. "id": {
  2830. "$ref": "#/definitions/space/definitions/id"
  2831. },
  2832. "name": {
  2833. "$ref": "#/definitions/space/definitions/name"
  2834. },
  2835. "shield": {
  2836. "$ref": "#/definitions/space/definitions/shield"
  2837. }
  2838. },
  2839. "type": [
  2840. "null",
  2841. "object"
  2842. ]
  2843. },
  2844. "stack": {
  2845. "description": "identity of app stack",
  2846. "properties": {
  2847. "id": {
  2848. "$ref": "#/definitions/stack/definitions/id"
  2849. },
  2850. "name": {
  2851. "$ref": "#/definitions/stack/definitions/name"
  2852. }
  2853. },
  2854. "strictProperties": true,
  2855. "type": [
  2856. "object"
  2857. ]
  2858. },
  2859. "updated_at": {
  2860. "$ref": "#/definitions/app/definitions/updated_at"
  2861. },
  2862. "web_url": {
  2863. "$ref": "#/definitions/app/definitions/web_url"
  2864. }
  2865. }
  2866. },
  2867. "build-result": {
  2868. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  2869. "deactivate_on": "2016-10-01",
  2870. "description": "A build result contains the output from a build.",
  2871. "title": "Heroku Build API - Build Result",
  2872. "stability": "deprecation",
  2873. "strictProperties": true,
  2874. "type": [
  2875. "object"
  2876. ],
  2877. "definitions": {
  2878. "identity": {
  2879. },
  2880. "exit_code": {
  2881. "description": "status from the build",
  2882. "example": 0,
  2883. "readOnly": true,
  2884. "type": [
  2885. "number"
  2886. ]
  2887. },
  2888. "line": {
  2889. "description": "a single line of output to STDOUT or STDERR from the build.",
  2890. "strictProperties": true,
  2891. "type": [
  2892. "object"
  2893. ],
  2894. "example": {
  2895. "stream": "STDOUT",
  2896. "line": "-----> Ruby app detected\n"
  2897. },
  2898. "readOnly": true,
  2899. "definitions": {
  2900. "stream": {
  2901. "type": [
  2902. "string"
  2903. ],
  2904. "enum": [
  2905. "STDOUT",
  2906. "STDERR"
  2907. ],
  2908. "description": "The output stream where the line was sent.",
  2909. "example": "STDOUT",
  2910. "readOnly": true
  2911. },
  2912. "line": {
  2913. "type": [
  2914. "string"
  2915. ],
  2916. "example": "-----> Ruby app detected\n",
  2917. "readOnly": true,
  2918. "description": "A line of output from the build."
  2919. }
  2920. },
  2921. "properties": {
  2922. "stream": {
  2923. "$ref": "#/definitions/build-result/definitions/line/definitions/stream"
  2924. },
  2925. "line": {
  2926. "$ref": "#/definitions/build-result/definitions/line/definitions/line"
  2927. }
  2928. }
  2929. }
  2930. },
  2931. "links": [
  2932. {
  2933. "description": "Info for existing result.",
  2934. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/builds/{(%23%2Fdefinitions%2Fbuild%2Fdefinitions%2Fidentity)}/result",
  2935. "method": "GET",
  2936. "rel": "self",
  2937. "targetSchema": {
  2938. "$ref": "#/definitions/build-result"
  2939. },
  2940. "title": "Info"
  2941. }
  2942. ],
  2943. "properties": {
  2944. "build": {
  2945. "description": "identity of build",
  2946. "properties": {
  2947. "id": {
  2948. "$ref": "#/definitions/build/definitions/id"
  2949. },
  2950. "status": {
  2951. "$ref": "#/definitions/build/definitions/status"
  2952. },
  2953. "output_stream_url": {
  2954. "$ref": "#/definitions/build/definitions/output_stream_url"
  2955. }
  2956. },
  2957. "type": [
  2958. "object"
  2959. ]
  2960. },
  2961. "exit_code": {
  2962. "$ref": "#/definitions/build-result/definitions/exit_code"
  2963. },
  2964. "lines": {
  2965. "type": [
  2966. "array"
  2967. ],
  2968. "items": {
  2969. "$ref": "#/definitions/build-result/definitions/line"
  2970. },
  2971. "description": "A list of all the lines of a build's output. This has been replaced by the `output_stream_url` attribute on the build resource.",
  2972. "example": [
  2973. {
  2974. "line": "-----> Ruby app detected\n",
  2975. "stream": "STDOUT"
  2976. }
  2977. ]
  2978. }
  2979. }
  2980. },
  2981. "build": {
  2982. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  2983. "description": "A build represents the process of transforming a code tarball into a slug",
  2984. "title": "Heroku Build API - Build",
  2985. "stability": "production",
  2986. "strictProperties": true,
  2987. "type": [
  2988. "object"
  2989. ],
  2990. "definitions": {
  2991. "buildpacks": {
  2992. "description": "buildpacks executed for this build, in order",
  2993. "type": [
  2994. "array",
  2995. "null"
  2996. ],
  2997. "items": {
  2998. "description": "Buildpack to execute in a build",
  2999. "type": [
  3000. "object"
  3001. ],
  3002. "properties": {
  3003. "url": {
  3004. "$ref": "#/definitions/buildpack-installation/definitions/url"
  3005. }
  3006. }
  3007. }
  3008. },
  3009. "created_at": {
  3010. "description": "when build was created",
  3011. "example": "2012-01-01T12:00:00Z",
  3012. "format": "date-time",
  3013. "readOnly": true,
  3014. "type": [
  3015. "string"
  3016. ]
  3017. },
  3018. "id": {
  3019. "description": "unique identifier of build",
  3020. "example": "01234567-89ab-cdef-0123-456789abcdef",
  3021. "format": "uuid",
  3022. "readOnly": true,
  3023. "type": [
  3024. "string"
  3025. ]
  3026. },
  3027. "identity": {
  3028. "anyOf": [
  3029. {
  3030. "$ref": "#/definitions/build/definitions/id"
  3031. }
  3032. ]
  3033. },
  3034. "output_stream_url": {
  3035. "description": "Build process output will be available from this URL as a stream. The stream is available as either `text/plain` or `text/event-stream`. Clients should be prepared to handle disconnects and can resume the stream by sending a `Range` header (for `text/plain`) or a `Last-Event-Id` header (for `text/event-stream`).",
  3036. "example": "https://build-output.heroku.com/streams/01234567-89ab-cdef-0123-456789abcdef",
  3037. "readOnly": true,
  3038. "type": [
  3039. "string"
  3040. ]
  3041. },
  3042. "release": {
  3043. "description": "release resulting from the build",
  3044. "strictProperties": true,
  3045. "properties": {
  3046. "id": {
  3047. "$ref": "#/definitions/release/definitions/id"
  3048. }
  3049. },
  3050. "example": {
  3051. "id": "01234567-89ab-cdef-0123-456789abcdef"
  3052. },
  3053. "readOnly": true,
  3054. "type": [
  3055. "null",
  3056. "object"
  3057. ],
  3058. "definitions": {
  3059. "id": {
  3060. "description": "unique identifier of release",
  3061. "example": "01234567-89ab-cdef-0123-456789abcdef",
  3062. "type": [
  3063. "string"
  3064. ]
  3065. }
  3066. }
  3067. },
  3068. "source_blob": {
  3069. "description": "location of gzipped tarball of source code used to create build",
  3070. "properties": {
  3071. "checksum": {
  3072. "description": "an optional checksum of the gzipped tarball for verifying its integrity",
  3073. "example": "SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  3074. "readOnly": true,
  3075. "type": [
  3076. "null",
  3077. "string"
  3078. ]
  3079. },
  3080. "url": {
  3081. "description": "URL where gzipped tar archive of source code for build was downloaded.",
  3082. "example": "https://example.com/source.tgz?token=xyz",
  3083. "readOnly": true,
  3084. "type": [
  3085. "string"
  3086. ]
  3087. },
  3088. "version": {
  3089. "description": "Version of the gzipped tarball.",
  3090. "example": "v1.3.0",
  3091. "readOnly": true,
  3092. "type": [
  3093. "string",
  3094. "null"
  3095. ]
  3096. }
  3097. },
  3098. "strictProperties": true,
  3099. "type": [
  3100. "object"
  3101. ]
  3102. },
  3103. "status": {
  3104. "description": "status of build",
  3105. "enum": [
  3106. "failed",
  3107. "pending",
  3108. "succeeded"
  3109. ],
  3110. "example": "succeeded",
  3111. "readOnly": true,
  3112. "type": [
  3113. "string"
  3114. ]
  3115. },
  3116. "updated_at": {
  3117. "description": "when build was updated",
  3118. "example": "2012-01-01T12:00:00Z",
  3119. "format": "date-time",
  3120. "readOnly": true,
  3121. "type": [
  3122. "string"
  3123. ]
  3124. }
  3125. },
  3126. "links": [
  3127. {
  3128. "description": "Create a new build.",
  3129. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/builds",
  3130. "method": "POST",
  3131. "rel": "create",
  3132. "schema": {
  3133. "type": [
  3134. "object"
  3135. ],
  3136. "properties": {
  3137. "buildpacks": {
  3138. "$ref": "#/definitions/build/definitions/buildpacks"
  3139. },
  3140. "source_blob": {
  3141. "$ref": "#/definitions/build/definitions/source_blob"
  3142. }
  3143. },
  3144. "required": [
  3145. "source_blob"
  3146. ]
  3147. },
  3148. "targetSchema": {
  3149. "$ref": "#/definitions/build"
  3150. },
  3151. "title": "Create"
  3152. },
  3153. {
  3154. "description": "Info for existing build.",
  3155. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/builds/{(%23%2Fdefinitions%2Fbuild%2Fdefinitions%2Fidentity)}",
  3156. "method": "GET",
  3157. "rel": "self",
  3158. "targetSchema": {
  3159. "$ref": "#/definitions/build"
  3160. },
  3161. "title": "Info"
  3162. },
  3163. {
  3164. "description": "List existing build.",
  3165. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/builds",
  3166. "method": "GET",
  3167. "ranges": [
  3168. "id",
  3169. "started_at"
  3170. ],
  3171. "rel": "instances",
  3172. "targetSchema": {
  3173. "items": {
  3174. "$ref": "#/definitions/build"
  3175. },
  3176. "type": [
  3177. "array"
  3178. ]
  3179. },
  3180. "title": "List"
  3181. }
  3182. ],
  3183. "properties": {
  3184. "app": {
  3185. "description": "app that the build belongs to",
  3186. "properties": {
  3187. "id": {
  3188. "$ref": "#/definitions/app/definitions/id"
  3189. }
  3190. },
  3191. "strictProperties": true,
  3192. "type": [
  3193. "object"
  3194. ]
  3195. },
  3196. "buildpacks": {
  3197. "$ref": "#/definitions/build/definitions/buildpacks"
  3198. },
  3199. "created_at": {
  3200. "$ref": "#/definitions/build/definitions/created_at"
  3201. },
  3202. "id": {
  3203. "$ref": "#/definitions/build/definitions/id"
  3204. },
  3205. "output_stream_url": {
  3206. "$ref": "#/definitions/build/definitions/output_stream_url"
  3207. },
  3208. "source_blob": {
  3209. "$ref": "#/definitions/build/definitions/source_blob"
  3210. },
  3211. "release": {
  3212. "$ref": "#/definitions/build/definitions/release"
  3213. },
  3214. "slug": {
  3215. "description": "slug created by this build",
  3216. "properties": {
  3217. "id": {
  3218. "$ref": "#/definitions/slug/definitions/id"
  3219. }
  3220. },
  3221. "strictProperties": true,
  3222. "type": [
  3223. "object",
  3224. "null"
  3225. ]
  3226. },
  3227. "status": {
  3228. "$ref": "#/definitions/build/definitions/status"
  3229. },
  3230. "updated_at": {
  3231. "$ref": "#/definitions/build/definitions/updated_at"
  3232. },
  3233. "user": {
  3234. "description": "user that started the build",
  3235. "properties": {
  3236. "id": {
  3237. "$ref": "#/definitions/account/definitions/id"
  3238. },
  3239. "email": {
  3240. "$ref": "#/definitions/account/definitions/email"
  3241. }
  3242. },
  3243. "strictProperties": true,
  3244. "type": [
  3245. "object"
  3246. ]
  3247. }
  3248. }
  3249. },
  3250. "buildpack-installation": {
  3251. "description": "A buildpack installation represents a buildpack that will be run against an app.",
  3252. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  3253. "stability": "production",
  3254. "strictProperties": true,
  3255. "title": "Heroku Platform API - Buildpack Installations",
  3256. "type": [
  3257. "object"
  3258. ],
  3259. "definitions": {
  3260. "ordinal": {
  3261. "description": "determines the order in which the buildpacks will execute",
  3262. "example": 0,
  3263. "readOnly": true,
  3264. "type": [
  3265. "integer"
  3266. ]
  3267. },
  3268. "update": {
  3269. "additionalProperties": false,
  3270. "description": "Properties to update a buildpack installation",
  3271. "properties": {
  3272. "buildpack": {
  3273. "$ref": "#/definitions/buildpack-installation/definitions/url"
  3274. }
  3275. },
  3276. "readOnly": false,
  3277. "required": [
  3278. "buildpack"
  3279. ],
  3280. "type": [
  3281. "object"
  3282. ]
  3283. },
  3284. "url": {
  3285. "description": "location of the buildpack for the app. Either a url (unofficial buildpacks) or an internal urn (heroku official buildpacks).",
  3286. "example": "https://github.com/heroku/heroku-buildpack-ruby",
  3287. "readOnly": false,
  3288. "type": [
  3289. "string"
  3290. ]
  3291. },
  3292. "name": {
  3293. "description": "either the shorthand name (heroku official buildpacks) or url (unofficial buildpacks) of the buildpack for the app",
  3294. "example": "heroku/ruby",
  3295. "readOnly": false,
  3296. "type": [
  3297. "string"
  3298. ]
  3299. }
  3300. },
  3301. "links": [
  3302. {
  3303. "description": "Update an app's buildpack installations.",
  3304. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/buildpack-installations",
  3305. "method": "PUT",
  3306. "rel": "update",
  3307. "schema": {
  3308. "properties": {
  3309. "updates": {
  3310. "description": "The buildpack attribute can accept a name, a url, or a urn.",
  3311. "items": {
  3312. "$ref": "#/definitions/buildpack-installation/definitions/update"
  3313. },
  3314. "type": [
  3315. "array"
  3316. ]
  3317. }
  3318. },
  3319. "required": [
  3320. "updates"
  3321. ],
  3322. "type": [
  3323. "object"
  3324. ]
  3325. },
  3326. "targetSchema": {
  3327. "items": {
  3328. "$ref": "#/definitions/buildpack-installation"
  3329. },
  3330. "type": [
  3331. "array"
  3332. ]
  3333. },
  3334. "title": "Update"
  3335. },
  3336. {
  3337. "description": "List an app's existing buildpack installations.",
  3338. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/buildpack-installations",
  3339. "method": "GET",
  3340. "rel": "instances",
  3341. "targetSchema": {
  3342. "items": {
  3343. "$ref": "#/definitions/buildpack-installation"
  3344. },
  3345. "type": [
  3346. "array"
  3347. ]
  3348. },
  3349. "title": "List"
  3350. }
  3351. ],
  3352. "properties": {
  3353. "ordinal": {
  3354. "$ref": "#/definitions/buildpack-installation/definitions/ordinal"
  3355. },
  3356. "buildpack": {
  3357. "description": "buildpack",
  3358. "properties": {
  3359. "url": {
  3360. "$ref": "#/definitions/buildpack-installation/definitions/url"
  3361. },
  3362. "name": {
  3363. "$ref": "#/definitions/buildpack-installation/definitions/name"
  3364. }
  3365. },
  3366. "type": [
  3367. "object"
  3368. ]
  3369. }
  3370. }
  3371. },
  3372. "collaborator": {
  3373. "description": "A collaborator represents an account that has been given access to an app on Heroku.",
  3374. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  3375. "additionalProperties": false,
  3376. "required": [
  3377. "app",
  3378. "created_at",
  3379. "id",
  3380. "updated_at",
  3381. "user"
  3382. ],
  3383. "stability": "production",
  3384. "title": "Heroku Platform API - Collaborator",
  3385. "type": [
  3386. "object"
  3387. ],
  3388. "definitions": {
  3389. "created_at": {
  3390. "description": "when collaborator was created",
  3391. "example": "2012-01-01T12:00:00Z",
  3392. "format": "date-time",
  3393. "readOnly": true,
  3394. "type": [
  3395. "string"
  3396. ]
  3397. },
  3398. "email": {
  3399. "description": "invited email address of collaborator",
  3400. "example": "collaborator@example.com",
  3401. "format": "email",
  3402. "readOnly": false,
  3403. "type": [
  3404. "string"
  3405. ]
  3406. },
  3407. "id": {
  3408. "description": "unique identifier of collaborator",
  3409. "example": "01234567-89ab-cdef-0123-456789abcdef",
  3410. "format": "uuid",
  3411. "readOnly": true,
  3412. "type": [
  3413. "string"
  3414. ]
  3415. },
  3416. "identity": {
  3417. "anyOf": [
  3418. {
  3419. "$ref": "#/definitions/collaborator/definitions/email"
  3420. },
  3421. {
  3422. "$ref": "#/definitions/collaborator/definitions/id"
  3423. }
  3424. ]
  3425. },
  3426. "silent": {
  3427. "default": false,
  3428. "description": "whether to suppress email invitation when creating collaborator",
  3429. "example": false,
  3430. "readOnly": false,
  3431. "type": [
  3432. "boolean"
  3433. ]
  3434. },
  3435. "updated_at": {
  3436. "description": "when collaborator was updated",
  3437. "example": "2012-01-01T12:00:00Z",
  3438. "format": "date-time",
  3439. "readOnly": true,
  3440. "type": [
  3441. "string"
  3442. ]
  3443. }
  3444. },
  3445. "links": [
  3446. {
  3447. "description": "Create a new collaborator.",
  3448. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/collaborators",
  3449. "method": "POST",
  3450. "rel": "create",
  3451. "schema": {
  3452. "properties": {
  3453. "silent": {
  3454. "$ref": "#/definitions/collaborator/definitions/silent"
  3455. },
  3456. "user": {
  3457. "$ref": "#/definitions/account/definitions/identity"
  3458. }
  3459. },
  3460. "required": [
  3461. "user"
  3462. ],
  3463. "type": [
  3464. "object"
  3465. ]
  3466. },
  3467. "targetSchema": {
  3468. "$ref": "#/definitions/collaborator"
  3469. },
  3470. "title": "Create"
  3471. },
  3472. {
  3473. "description": "Delete an existing collaborator.",
  3474. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/collaborators/{(%23%2Fdefinitions%2Fcollaborator%2Fdefinitions%2Fidentity)}",
  3475. "method": "DELETE",
  3476. "rel": "destroy",
  3477. "targetSchema": {
  3478. "$ref": "#/definitions/collaborator"
  3479. },
  3480. "title": "Delete"
  3481. },
  3482. {
  3483. "description": "Info for existing collaborator.",
  3484. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/collaborators/{(%23%2Fdefinitions%2Fcollaborator%2Fdefinitions%2Fidentity)}",
  3485. "method": "GET",
  3486. "rel": "self",
  3487. "targetSchema": {
  3488. "$ref": "#/definitions/collaborator"
  3489. },
  3490. "title": "Info"
  3491. },
  3492. {
  3493. "description": "List existing collaborators.",
  3494. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/collaborators",
  3495. "method": "GET",
  3496. "rel": "instances",
  3497. "targetSchema": {
  3498. "items": {
  3499. "$ref": "#/definitions/collaborator"
  3500. },
  3501. "type": [
  3502. "array"
  3503. ]
  3504. },
  3505. "title": "List"
  3506. }
  3507. ],
  3508. "properties": {
  3509. "app": {
  3510. "description": "app collaborator belongs to",
  3511. "properties": {
  3512. "name": {
  3513. "$ref": "#/definitions/app/definitions/name"
  3514. },
  3515. "id": {
  3516. "$ref": "#/definitions/app/definitions/id"
  3517. }
  3518. },
  3519. "strictProperties": true,
  3520. "type": [
  3521. "object"
  3522. ]
  3523. },
  3524. "created_at": {
  3525. "$ref": "#/definitions/collaborator/definitions/created_at"
  3526. },
  3527. "id": {
  3528. "$ref": "#/definitions/collaborator/definitions/id"
  3529. },
  3530. "permissions": {
  3531. "type": [
  3532. "array"
  3533. ],
  3534. "items": {
  3535. "$ref": "#/definitions/team-app-permission"
  3536. }
  3537. },
  3538. "role": {
  3539. "$ref": "#/definitions/team/definitions/role"
  3540. },
  3541. "updated_at": {
  3542. "$ref": "#/definitions/collaborator/definitions/updated_at"
  3543. },
  3544. "user": {
  3545. "description": "identity of collaborated account",
  3546. "properties": {
  3547. "email": {
  3548. "$ref": "#/definitions/account/definitions/email"
  3549. },
  3550. "federated": {
  3551. "$ref": "#/definitions/account/definitions/federated"
  3552. },
  3553. "id": {
  3554. "$ref": "#/definitions/account/definitions/id"
  3555. }
  3556. },
  3557. "strictProperties": true,
  3558. "type": [
  3559. "object"
  3560. ]
  3561. }
  3562. }
  3563. },
  3564. "config-var": {
  3565. "description": "Config Vars allow you to manage the configuration information provided to an app on Heroku.",
  3566. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  3567. "stability": "production",
  3568. "strictProperties": true,
  3569. "title": "Heroku Platform API - Config Vars",
  3570. "type": [
  3571. "object"
  3572. ],
  3573. "definitions": {
  3574. "config_vars": {
  3575. "additionalProperties": false,
  3576. "description": "hash of config vars",
  3577. "example": {
  3578. "FOO": "bar",
  3579. "BAZ": "qux"
  3580. },
  3581. "patternProperties": {
  3582. "^\\w+$": {
  3583. "type": [
  3584. "string",
  3585. "null"
  3586. ]
  3587. }
  3588. },
  3589. "type": [
  3590. "object"
  3591. ]
  3592. }
  3593. },
  3594. "links": [
  3595. {
  3596. "description": "Get config-vars for app.",
  3597. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/config-vars",
  3598. "method": "GET",
  3599. "rel": "self",
  3600. "targetSchema": {
  3601. "$ref": "#/definitions/config-var/definitions/config_vars"
  3602. },
  3603. "title": "Info for App"
  3604. },
  3605. {
  3606. "description": "Get config-vars for a release.",
  3607. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/releases/{(%23%2Fdefinitions%2Frelease%2Fdefinitions%2Fidentity)}/config-vars",
  3608. "method": "GET",
  3609. "rel": "self",
  3610. "targetSchema": {
  3611. "$ref": "#/definitions/config-var/definitions/config_vars"
  3612. },
  3613. "title": "Info for App Release"
  3614. },
  3615. {
  3616. "description": "Update config-vars for app. You can update existing config-vars by setting them again, and remove by setting it to `null`.",
  3617. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/config-vars",
  3618. "method": "PATCH",
  3619. "rel": "update",
  3620. "schema": {
  3621. "additionalProperties": false,
  3622. "description": "hash of config changes – update values or delete by seting it to `null`",
  3623. "example": {
  3624. "FOO": "bar",
  3625. "BAZ": "qux"
  3626. },
  3627. "patternProperties": {
  3628. "^\\w+$": {
  3629. "type": [
  3630. "string",
  3631. "null"
  3632. ]
  3633. }
  3634. },
  3635. "type": [
  3636. "object"
  3637. ]
  3638. },
  3639. "targetSchema": {
  3640. "$ref": "#/definitions/config-var/definitions/config_vars"
  3641. },
  3642. "title": "Update"
  3643. }
  3644. ],
  3645. "example": {
  3646. "FOO": "bar",
  3647. "BAZ": "qux"
  3648. },
  3649. "patternProperties": {
  3650. "^\\w+$": {
  3651. "type": [
  3652. "string"
  3653. ]
  3654. }
  3655. }
  3656. },
  3657. "credit": {
  3658. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  3659. "description": "A credit represents value that will be used up before further charges are assigned to an account.",
  3660. "stability": "development",
  3661. "strictProperties": true,
  3662. "title": "Heroku Platform API - Credit",
  3663. "type": [
  3664. "object"
  3665. ],
  3666. "definitions": {
  3667. "amount": {
  3668. "description": "total value of credit in cents",
  3669. "example": 10000,
  3670. "type": [
  3671. "number"
  3672. ]
  3673. },
  3674. "balance": {
  3675. "description": "remaining value of credit in cents",
  3676. "example": 5000,
  3677. "type": [
  3678. "number"
  3679. ]
  3680. },
  3681. "created_at": {
  3682. "description": "when credit was created",
  3683. "example": "2012-01-01T12:00:00Z",
  3684. "format": "date-time",
  3685. "type": [
  3686. "string"
  3687. ]
  3688. },
  3689. "expires_at": {
  3690. "description": "when credit will expire",
  3691. "example": "2012-01-01T12:00:00Z",
  3692. "format": "date-time",
  3693. "type": [
  3694. "string"
  3695. ]
  3696. },
  3697. "id": {
  3698. "description": "unique identifier of credit",
  3699. "example": "01234567-89ab-cdef-0123-456789abcdef",
  3700. "format": "uuid",
  3701. "type": [
  3702. "string"
  3703. ]
  3704. },
  3705. "identity": {
  3706. "anyOf": [
  3707. {
  3708. "$ref": "#/definitions/credit/definitions/id"
  3709. }
  3710. ]
  3711. },
  3712. "title": {
  3713. "description": "a name for credit",
  3714. "example": "gift card",
  3715. "type": [
  3716. "string"
  3717. ]
  3718. },
  3719. "updated_at": {
  3720. "description": "when credit was updated",
  3721. "example": "2012-01-01T12:00:00Z",
  3722. "format": "date-time",
  3723. "type": [
  3724. "string"
  3725. ]
  3726. }
  3727. },
  3728. "links": [
  3729. {
  3730. "description": "Create a new credit.",
  3731. "href": "/account/credits",
  3732. "method": "POST",
  3733. "rel": "create",
  3734. "schema": {
  3735. "properties": {
  3736. "code1": {
  3737. "description": "first code from a discount card",
  3738. "example": "012abc",
  3739. "type": [
  3740. "string"
  3741. ]
  3742. },
  3743. "code2": {
  3744. "description": "second code from a discount card",
  3745. "example": "012abc",
  3746. "type": [
  3747. "string"
  3748. ]
  3749. }
  3750. },
  3751. "type": [
  3752. "object"
  3753. ]
  3754. },
  3755. "targetSchema": {
  3756. "$ref": "#/definitions/credit"
  3757. },
  3758. "title": "Create"
  3759. },
  3760. {
  3761. "description": "Info for existing credit.",
  3762. "href": "/account/credits/{(%23%2Fdefinitions%2Fcredit%2Fdefinitions%2Fidentity)}",
  3763. "method": "GET",
  3764. "rel": "self",
  3765. "targetSchema": {
  3766. "$ref": "#/definitions/credit"
  3767. },
  3768. "title": "Info"
  3769. },
  3770. {
  3771. "description": "List existing credits.",
  3772. "href": "/account/credits",
  3773. "method": "GET",
  3774. "rel": "instances",
  3775. "targetSchema": {
  3776. "items": {
  3777. "$ref": "#/definitions/credit"
  3778. },
  3779. "type": [
  3780. "array"
  3781. ]
  3782. },
  3783. "title": "List"
  3784. }
  3785. ],
  3786. "properties": {
  3787. "amount": {
  3788. "$ref": "#/definitions/credit/definitions/amount"
  3789. },
  3790. "balance": {
  3791. "$ref": "#/definitions/credit/definitions/balance"
  3792. },
  3793. "created_at": {
  3794. "$ref": "#/definitions/credit/definitions/created_at"
  3795. },
  3796. "expires_at": {
  3797. "$ref": "#/definitions/credit/definitions/expires_at"
  3798. },
  3799. "id": {
  3800. "$ref": "#/definitions/credit/definitions/id"
  3801. },
  3802. "title": {
  3803. "$ref": "#/definitions/credit/definitions/title"
  3804. },
  3805. "updated_at": {
  3806. "$ref": "#/definitions/credit/definitions/updated_at"
  3807. }
  3808. }
  3809. },
  3810. "domain": {
  3811. "description": "Domains define what web routes should be routed to an app on Heroku.",
  3812. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  3813. "stability": "production",
  3814. "strictProperties": true,
  3815. "title": "Heroku Platform API - Domain",
  3816. "type": [
  3817. "object"
  3818. ],
  3819. "definitions": {
  3820. "created_at": {
  3821. "description": "when domain was created",
  3822. "example": "2012-01-01T12:00:00Z",
  3823. "format": "date-time",
  3824. "readOnly": true,
  3825. "type": [
  3826. "string"
  3827. ]
  3828. },
  3829. "cname": {
  3830. "description": "canonical name record, the address to point a domain at",
  3831. "example": "example.herokudns.com",
  3832. "readOnly": true,
  3833. "type": [
  3834. "null",
  3835. "string"
  3836. ]
  3837. },
  3838. "status": {
  3839. "description": "status of this record's cname",
  3840. "example": "pending",
  3841. "readOnly": true,
  3842. "type": [
  3843. "string"
  3844. ]
  3845. },
  3846. "hostname": {
  3847. "description": "full hostname",
  3848. "example": "subdomain.example.com",
  3849. "format": "uri",
  3850. "readOnly": true,
  3851. "type": [
  3852. "string"
  3853. ]
  3854. },
  3855. "id": {
  3856. "description": "unique identifier of this domain",
  3857. "example": "01234567-89ab-cdef-0123-456789abcdef",
  3858. "format": "uuid",
  3859. "readOnly": true,
  3860. "type": [
  3861. "string"
  3862. ]
  3863. },
  3864. "identity": {
  3865. "anyOf": [
  3866. {
  3867. "$ref": "#/definitions/domain/definitions/id"
  3868. },
  3869. {
  3870. "$ref": "#/definitions/domain/definitions/hostname"
  3871. }
  3872. ]
  3873. },
  3874. "kind": {
  3875. "description": "type of domain name",
  3876. "enum": [
  3877. "heroku",
  3878. "custom"
  3879. ],
  3880. "example": "custom",
  3881. "readOnly": true,
  3882. "type": [
  3883. "string"
  3884. ]
  3885. },
  3886. "updated_at": {
  3887. "description": "when domain was updated",
  3888. "example": "2012-01-01T12:00:00Z",
  3889. "format": "date-time",
  3890. "readOnly": true,
  3891. "type": [
  3892. "string"
  3893. ]
  3894. }
  3895. },
  3896. "links": [
  3897. {
  3898. "description": "Create a new domain.",
  3899. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/domains",
  3900. "method": "POST",
  3901. "rel": "create",
  3902. "schema": {
  3903. "properties": {
  3904. "hostname": {
  3905. "$ref": "#/definitions/domain/definitions/hostname"
  3906. }
  3907. },
  3908. "required": [
  3909. "hostname"
  3910. ],
  3911. "type": [
  3912. "object"
  3913. ]
  3914. },
  3915. "targetSchema": {
  3916. "$ref": "#/definitions/domain"
  3917. },
  3918. "title": "Create"
  3919. },
  3920. {
  3921. "description": "Delete an existing domain",
  3922. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/domains/{(%23%2Fdefinitions%2Fdomain%2Fdefinitions%2Fidentity)}",
  3923. "method": "DELETE",
  3924. "rel": "destroy",
  3925. "targetSchema": {
  3926. "$ref": "#/definitions/domain"
  3927. },
  3928. "title": "Delete"
  3929. },
  3930. {
  3931. "description": "Info for existing domain.",
  3932. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/domains/{(%23%2Fdefinitions%2Fdomain%2Fdefinitions%2Fidentity)}",
  3933. "method": "GET",
  3934. "rel": "self",
  3935. "targetSchema": {
  3936. "$ref": "#/definitions/domain"
  3937. },
  3938. "title": "Info"
  3939. },
  3940. {
  3941. "description": "List existing domains.",
  3942. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/domains",
  3943. "method": "GET",
  3944. "rel": "instances",
  3945. "targetSchema": {
  3946. "items": {
  3947. "$ref": "#/definitions/domain"
  3948. },
  3949. "type": [
  3950. "array"
  3951. ]
  3952. },
  3953. "title": "List"
  3954. }
  3955. ],
  3956. "properties": {
  3957. "app": {
  3958. "description": "app that owns the domain",
  3959. "properties": {
  3960. "name": {
  3961. "$ref": "#/definitions/app/definitions/name"
  3962. },
  3963. "id": {
  3964. "$ref": "#/definitions/app/definitions/id"
  3965. }
  3966. },
  3967. "type": [
  3968. "object"
  3969. ]
  3970. },
  3971. "cname": {
  3972. "$ref": "#/definitions/domain/definitions/cname"
  3973. },
  3974. "created_at": {
  3975. "$ref": "#/definitions/domain/definitions/created_at"
  3976. },
  3977. "hostname": {
  3978. "$ref": "#/definitions/domain/definitions/hostname"
  3979. },
  3980. "id": {
  3981. "$ref": "#/definitions/domain/definitions/id"
  3982. },
  3983. "kind": {
  3984. "$ref": "#/definitions/domain/definitions/kind"
  3985. },
  3986. "updated_at": {
  3987. "$ref": "#/definitions/domain/definitions/updated_at"
  3988. },
  3989. "status": {
  3990. "$ref": "#/definitions/domain/definitions/status"
  3991. }
  3992. }
  3993. },
  3994. "dyno-size": {
  3995. "description": "Dyno sizes are the values and details of sizes that can be assigned to dynos. This information can also be found at : [https://devcenter.heroku.com/articles/dyno-types](https://devcenter.heroku.com/articles/dyno-types).",
  3996. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  3997. "stability": "prototype",
  3998. "strictProperties": true,
  3999. "title": "Heroku Platform API - Dyno Size",
  4000. "type": [
  4001. "object"
  4002. ],
  4003. "definitions": {
  4004. "compute": {
  4005. "description": "minimum vCPUs, non-dedicated may get more depending on load",
  4006. "example": 1,
  4007. "readOnly": true,
  4008. "type": [
  4009. "integer"
  4010. ]
  4011. },
  4012. "dedicated": {
  4013. "description": "whether this dyno will be dedicated to one user",
  4014. "example": false,
  4015. "readOnly": true,
  4016. "type": [
  4017. "boolean"
  4018. ]
  4019. },
  4020. "id": {
  4021. "description": "unique identifier of this dyno size",
  4022. "example": "01234567-89ab-cdef-0123-456789abcdef",
  4023. "format": "uuid",
  4024. "readOnly": true,
  4025. "type": [
  4026. "string"
  4027. ]
  4028. },
  4029. "identity": {
  4030. "anyOf": [
  4031. {
  4032. "$ref": "#/definitions/dyno-size/definitions/id"
  4033. },
  4034. {
  4035. "$ref": "#/definitions/dyno-size/definitions/name"
  4036. }
  4037. ]
  4038. },
  4039. "memory": {
  4040. "description": "amount of RAM in GB",
  4041. "example": 0.5,
  4042. "readOnly": true,
  4043. "type": [
  4044. "number"
  4045. ]
  4046. },
  4047. "name": {
  4048. "description": "the name of this dyno-size",
  4049. "example": "free",
  4050. "readOnly": true,
  4051. "type": [
  4052. "string"
  4053. ]
  4054. },
  4055. "cost": {
  4056. "description": "price information for this dyno size",
  4057. "readOnly": true,
  4058. "type": [
  4059. "null",
  4060. "object"
  4061. ],
  4062. "definitions": {
  4063. "cents": {
  4064. "description": "price in cents per unit time",
  4065. "example": 0,
  4066. "readOnly": true,
  4067. "type": [
  4068. "integer"
  4069. ]
  4070. },
  4071. "unit": {
  4072. "description": "unit of price for dyno",
  4073. "readOnly": true,
  4074. "example": "month",
  4075. "type": [
  4076. "string"
  4077. ]
  4078. }
  4079. }
  4080. },
  4081. "dyno_units": {
  4082. "description": "unit of consumption for Heroku Enterprise customers",
  4083. "example": 0,
  4084. "readOnly": true,
  4085. "type": [
  4086. "integer"
  4087. ]
  4088. },
  4089. "private_space_only": {
  4090. "description": "whether this dyno can only be provisioned in a private space",
  4091. "example": false,
  4092. "readOnly": true,
  4093. "type": [
  4094. "boolean"
  4095. ]
  4096. }
  4097. },
  4098. "links": [
  4099. {
  4100. "description": "Info for existing dyno size.",
  4101. "href": "/dyno-sizes/{(%23%2Fdefinitions%2Fdyno-size%2Fdefinitions%2Fidentity)}",
  4102. "method": "GET",
  4103. "rel": "self",
  4104. "targetSchema": {
  4105. "$ref": "#/definitions/dyno-size"
  4106. },
  4107. "title": "Info"
  4108. },
  4109. {
  4110. "description": "List existing dyno sizes.",
  4111. "href": "/dyno-sizes",
  4112. "method": "GET",
  4113. "rel": "instances",
  4114. "targetSchema": {
  4115. "items": {
  4116. "$ref": "#/definitions/dyno-size"
  4117. },
  4118. "type": [
  4119. "array"
  4120. ]
  4121. },
  4122. "title": "List"
  4123. }
  4124. ],
  4125. "properties": {
  4126. "compute": {
  4127. "$ref": "#/definitions/dyno-size/definitions/compute"
  4128. },
  4129. "cost": {
  4130. "$ref": "#/definitions/dyno-size/definitions/cost"
  4131. },
  4132. "dedicated": {
  4133. "$ref": "#/definitions/dyno-size/definitions/dedicated"
  4134. },
  4135. "dyno_units": {
  4136. "$ref": "#/definitions/dyno-size/definitions/dyno_units"
  4137. },
  4138. "id": {
  4139. "$ref": "#/definitions/dyno-size/definitions/id"
  4140. },
  4141. "memory": {
  4142. "$ref": "#/definitions/dyno-size/definitions/memory"
  4143. },
  4144. "name": {
  4145. "$ref": "#/definitions/dyno-size/definitions/name"
  4146. },
  4147. "private_space_only": {
  4148. "$ref": "#/definitions/dyno-size/definitions/private_space_only"
  4149. }
  4150. }
  4151. },
  4152. "dyno": {
  4153. "description": "Dynos encapsulate running processes of an app on Heroku. Detailed information about dyno sizes can be found at: [https://devcenter.heroku.com/articles/dyno-types](https://devcenter.heroku.com/articles/dyno-types).",
  4154. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  4155. "stability": "production",
  4156. "strictProperties": true,
  4157. "title": "Heroku Platform API - Dyno",
  4158. "type": [
  4159. "object"
  4160. ],
  4161. "definitions": {
  4162. "attach": {
  4163. "description": "whether to stream output or not",
  4164. "example": true,
  4165. "readOnly": false,
  4166. "type": [
  4167. "boolean"
  4168. ]
  4169. },
  4170. "attach_url": {
  4171. "description": "a URL to stream output from for attached processes or null for non-attached processes",
  4172. "example": "rendezvous://rendezvous.runtime.heroku.com:5000/{rendezvous-id}",
  4173. "readOnly": true,
  4174. "type": [
  4175. "string",
  4176. "null"
  4177. ]
  4178. },
  4179. "command": {
  4180. "description": "command used to start this process",
  4181. "example": "bash",
  4182. "readOnly": false,
  4183. "type": [
  4184. "string"
  4185. ]
  4186. },
  4187. "created_at": {
  4188. "description": "when dyno was created",
  4189. "example": "2012-01-01T12:00:00Z",
  4190. "format": "date-time",
  4191. "readOnly": true,
  4192. "type": [
  4193. "string"
  4194. ]
  4195. },
  4196. "env": {
  4197. "additionalProperties": false,
  4198. "description": "custom environment to add to the dyno config vars",
  4199. "example": {
  4200. "COLUMNS": "80",
  4201. "LINES": "24"
  4202. },
  4203. "patternProperties": {
  4204. "^\\w+$": {
  4205. "type": [
  4206. "string"
  4207. ]
  4208. }
  4209. },
  4210. "readOnly": false,
  4211. "strictProperties": true,
  4212. "type": [
  4213. "object"
  4214. ]
  4215. },
  4216. "id": {
  4217. "description": "unique identifier of this dyno",
  4218. "example": "01234567-89ab-cdef-0123-456789abcdef",
  4219. "format": "uuid",
  4220. "readOnly": true,
  4221. "type": [
  4222. "string"
  4223. ]
  4224. },
  4225. "identity": {
  4226. "anyOf": [
  4227. {
  4228. "$ref": "#/definitions/dyno/definitions/id"
  4229. },
  4230. {
  4231. "$ref": "#/definitions/dyno/definitions/name"
  4232. }
  4233. ]
  4234. },
  4235. "name": {
  4236. "description": "the name of this process on this dyno",
  4237. "example": "run.1",
  4238. "readOnly": true,
  4239. "type": [
  4240. "string"
  4241. ]
  4242. },
  4243. "force_no_tty": {
  4244. "description": "force an attached one-off dyno to not run in a tty",
  4245. "example": null,
  4246. "readOnly": false,
  4247. "type": [
  4248. "boolean",
  4249. "null"
  4250. ]
  4251. },
  4252. "size": {
  4253. "description": "dyno size (default: \"standard-1X\")",
  4254. "example": "standard-1X",
  4255. "readOnly": false,
  4256. "type": [
  4257. "string"
  4258. ]
  4259. },
  4260. "state": {
  4261. "description": "current status of process (either: crashed, down, idle, starting, or up)",
  4262. "example": "up",
  4263. "readOnly": true,
  4264. "type": [
  4265. "string"
  4266. ]
  4267. },
  4268. "type": {
  4269. "description": "type of process",
  4270. "example": "run",
  4271. "readOnly": false,
  4272. "type": [
  4273. "string"
  4274. ]
  4275. },
  4276. "time_to_live": {
  4277. "description": "seconds until dyno expires, after which it will soon be killed",
  4278. "example": 1800,
  4279. "readOnly": false,
  4280. "type": [
  4281. "integer"
  4282. ]
  4283. },
  4284. "updated_at": {
  4285. "description": "when process last changed state",
  4286. "example": "2012-01-01T12:00:00Z",
  4287. "format": "date-time",
  4288. "readOnly": true,
  4289. "type": [
  4290. "string"
  4291. ]
  4292. }
  4293. },
  4294. "links": [
  4295. {
  4296. "description": "Create a new dyno.",
  4297. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/dynos",
  4298. "method": "POST",
  4299. "rel": "create",
  4300. "schema": {
  4301. "properties": {
  4302. "attach": {
  4303. "$ref": "#/definitions/dyno/definitions/attach"
  4304. },
  4305. "command": {
  4306. "$ref": "#/definitions/dyno/definitions/command"
  4307. },
  4308. "env": {
  4309. "$ref": "#/definitions/dyno/definitions/env"
  4310. },
  4311. "force_no_tty": {
  4312. "$ref": "#/definitions/dyno/definitions/force_no_tty"
  4313. },
  4314. "size": {
  4315. "$ref": "#/definitions/dyno/definitions/size"
  4316. },
  4317. "type": {
  4318. "$ref": "#/definitions/dyno/definitions/type"
  4319. },
  4320. "time_to_live": {
  4321. "$ref": "#/definitions/dyno/definitions/time_to_live"
  4322. }
  4323. },
  4324. "required": [
  4325. "command"
  4326. ],
  4327. "type": [
  4328. "object"
  4329. ]
  4330. },
  4331. "targetSchema": {
  4332. "$ref": "#/definitions/dyno"
  4333. },
  4334. "title": "Create"
  4335. },
  4336. {
  4337. "description": "Restart dyno.",
  4338. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/dynos/{(%23%2Fdefinitions%2Fdyno%2Fdefinitions%2Fidentity)}",
  4339. "method": "DELETE",
  4340. "rel": "empty",
  4341. "targetSchema": {
  4342. "additionalPoperties": false,
  4343. "type": [
  4344. "object"
  4345. ]
  4346. },
  4347. "title": "Restart"
  4348. },
  4349. {
  4350. "description": "Restart all dynos.",
  4351. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/dynos",
  4352. "method": "DELETE",
  4353. "rel": "empty",
  4354. "targetSchema": {
  4355. "additionalPoperties": false,
  4356. "type": [
  4357. "object"
  4358. ]
  4359. },
  4360. "title": "Restart all"
  4361. },
  4362. {
  4363. "description": "Stop dyno.",
  4364. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/dynos/{(%23%2Fdefinitions%2Fdyno%2Fdefinitions%2Fidentity)}/actions/stop",
  4365. "method": "POST",
  4366. "rel": "empty",
  4367. "targetSchema": {
  4368. "additionalPoperties": false,
  4369. "type": [
  4370. "object"
  4371. ]
  4372. },
  4373. "title": "Stop"
  4374. },
  4375. {
  4376. "description": "Info for existing dyno.",
  4377. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/dynos/{(%23%2Fdefinitions%2Fdyno%2Fdefinitions%2Fidentity)}",
  4378. "method": "GET",
  4379. "rel": "self",
  4380. "targetSchema": {
  4381. "$ref": "#/definitions/dyno"
  4382. },
  4383. "title": "Info"
  4384. },
  4385. {
  4386. "description": "List existing dynos.",
  4387. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/dynos",
  4388. "method": "GET",
  4389. "rel": "instances",
  4390. "targetSchema": {
  4391. "items": {
  4392. "$ref": "#/definitions/dyno"
  4393. },
  4394. "type": [
  4395. "array"
  4396. ]
  4397. },
  4398. "title": "List"
  4399. }
  4400. ],
  4401. "properties": {
  4402. "attach_url": {
  4403. "$ref": "#/definitions/dyno/definitions/attach_url"
  4404. },
  4405. "command": {
  4406. "$ref": "#/definitions/dyno/definitions/command"
  4407. },
  4408. "created_at": {
  4409. "$ref": "#/definitions/dyno/definitions/created_at"
  4410. },
  4411. "id": {
  4412. "$ref": "#/definitions/dyno/definitions/id"
  4413. },
  4414. "name": {
  4415. "$ref": "#/definitions/dyno/definitions/name"
  4416. },
  4417. "release": {
  4418. "description": "app release of the dyno",
  4419. "properties": {
  4420. "id": {
  4421. "$ref": "#/definitions/release/definitions/id"
  4422. },
  4423. "version": {
  4424. "$ref": "#/definitions/release/definitions/version"
  4425. }
  4426. },
  4427. "strictProperties": true,
  4428. "type": [
  4429. "object"
  4430. ]
  4431. },
  4432. "app": {
  4433. "description": "app formation belongs to",
  4434. "properties": {
  4435. "name": {
  4436. "$ref": "#/definitions/app/definitions/name"
  4437. },
  4438. "id": {
  4439. "$ref": "#/definitions/app/definitions/id"
  4440. }
  4441. },
  4442. "type": [
  4443. "object"
  4444. ]
  4445. },
  4446. "size": {
  4447. "$ref": "#/definitions/dyno/definitions/size"
  4448. },
  4449. "state": {
  4450. "$ref": "#/definitions/dyno/definitions/state"
  4451. },
  4452. "type": {
  4453. "$ref": "#/definitions/dyno/definitions/type"
  4454. },
  4455. "updated_at": {
  4456. "$ref": "#/definitions/dyno/definitions/updated_at"
  4457. }
  4458. }
  4459. },
  4460. "event": {
  4461. "description": "An event represents an action performed on another API resource.",
  4462. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  4463. "stability": "development",
  4464. "strictProperties": true,
  4465. "title": "Heroku Platform API - Event",
  4466. "type": [
  4467. "object"
  4468. ],
  4469. "definitions": {
  4470. "action": {
  4471. "description": "the operation performed on the resource",
  4472. "enum": [
  4473. "create",
  4474. "destroy",
  4475. "update"
  4476. ],
  4477. "example": "create",
  4478. "readOnly": true,
  4479. "type": [
  4480. "string"
  4481. ]
  4482. },
  4483. "created_at": {
  4484. "description": "when the event was created",
  4485. "example": "2012-01-01T12:00:00Z",
  4486. "format": "date-time",
  4487. "readOnly": true,
  4488. "type": [
  4489. "string"
  4490. ]
  4491. },
  4492. "data": {
  4493. "description": "the serialized resource affected by the event",
  4494. "example": {
  4495. },
  4496. "anyOf": [
  4497. {
  4498. "$ref": "#/definitions/account"
  4499. },
  4500. {
  4501. "$ref": "#/definitions/add-on"
  4502. },
  4503. {
  4504. "$ref": "#/definitions/add-on-attachment"
  4505. },
  4506. {
  4507. "$ref": "#/definitions/app"
  4508. },
  4509. {
  4510. "$ref": "#/definitions/app-formation-set"
  4511. },
  4512. {
  4513. "$ref": "#/definitions/app-setup"
  4514. },
  4515. {
  4516. "$ref": "#/definitions/app-transfer"
  4517. },
  4518. {
  4519. "$ref": "#/definitions/build"
  4520. },
  4521. {
  4522. "$ref": "#/definitions/collaborator"
  4523. },
  4524. {
  4525. "$ref": "#/definitions/domain"
  4526. },
  4527. {
  4528. "$ref": "#/definitions/dyno"
  4529. },
  4530. {
  4531. "$ref": "#/definitions/failed-event"
  4532. },
  4533. {
  4534. "$ref": "#/definitions/formation"
  4535. },
  4536. {
  4537. "$ref": "#/definitions/inbound-ruleset"
  4538. },
  4539. {
  4540. "$ref": "#/definitions/organization"
  4541. },
  4542. {
  4543. "$ref": "#/definitions/release"
  4544. },
  4545. {
  4546. "$ref": "#/definitions/space"
  4547. },
  4548. {
  4549. "$ref": "#/definitions/team"
  4550. }
  4551. ],
  4552. "readOnly": true,
  4553. "type": [
  4554. "object"
  4555. ]
  4556. },
  4557. "id": {
  4558. "description": "unique identifier of an event",
  4559. "example": "01234567-89ab-cdef-0123-456789abcdef",
  4560. "format": "uuid",
  4561. "readOnly": true,
  4562. "type": [
  4563. "string"
  4564. ]
  4565. },
  4566. "identity": {
  4567. "anyOf": [
  4568. {
  4569. "$ref": "#/definitions/event/definitions/id"
  4570. }
  4571. ]
  4572. },
  4573. "published_at": {
  4574. "description": "when the event was published",
  4575. "example": "2012-01-01T12:00:00Z",
  4576. "format": "date-time",
  4577. "readOnly": true,
  4578. "type": [
  4579. "null",
  4580. "string"
  4581. ]
  4582. },
  4583. "resource": {
  4584. "description": "the type of resource affected",
  4585. "enum": [
  4586. "addon",
  4587. "addon-attachment",
  4588. "app",
  4589. "app-setup",
  4590. "app-transfer",
  4591. "build",
  4592. "collaborator",
  4593. "domain",
  4594. "dyno",
  4595. "failed-event",
  4596. "formation",
  4597. "formation-set",
  4598. "inbound-ruleset",
  4599. "organization",
  4600. "release",
  4601. "space",
  4602. "team",
  4603. "user"
  4604. ],
  4605. "example": "app",
  4606. "readOnly": true,
  4607. "type": [
  4608. "string"
  4609. ]
  4610. },
  4611. "sequence": {
  4612. "description": "a numeric string representing the event's sequence",
  4613. "example": "1234567890",
  4614. "pattern": "^[0-9]{1,128}$",
  4615. "readOnly": true,
  4616. "type": [
  4617. "null",
  4618. "string"
  4619. ]
  4620. },
  4621. "updated_at": {
  4622. "description": "when the event was updated (same as created)",
  4623. "example": "2012-01-01T12:00:00Z",
  4624. "format": "date-time",
  4625. "readOnly": true,
  4626. "type": [
  4627. "string"
  4628. ]
  4629. },
  4630. "version": {
  4631. "description": "the event's API version string",
  4632. "example": "application/vnd.heroku+json; version=3",
  4633. "readOnly": true,
  4634. "type": [
  4635. "string"
  4636. ]
  4637. }
  4638. },
  4639. "links": [
  4640. ],
  4641. "properties": {
  4642. "action": {
  4643. "$ref": "#/definitions/event/definitions/action"
  4644. },
  4645. "actor": {
  4646. "description": "user that performed the operation",
  4647. "properties": {
  4648. "email": {
  4649. "$ref": "#/definitions/account/definitions/email"
  4650. },
  4651. "id": {
  4652. "$ref": "#/definitions/account/definitions/id"
  4653. }
  4654. },
  4655. "strictProperties": true,
  4656. "type": [
  4657. "object"
  4658. ]
  4659. },
  4660. "created_at": {
  4661. "$ref": "#/definitions/event/definitions/created_at"
  4662. },
  4663. "data": {
  4664. "$ref": "#/definitions/event/definitions/data"
  4665. },
  4666. "id": {
  4667. "$ref": "#/definitions/event/definitions/id"
  4668. },
  4669. "previous_data": {
  4670. "description": "data fields that were changed during update with previous values",
  4671. "type": [
  4672. "object"
  4673. ]
  4674. },
  4675. "published_at": {
  4676. "$ref": "#/definitions/event/definitions/published_at"
  4677. },
  4678. "resource": {
  4679. "$ref": "#/definitions/event/definitions/resource"
  4680. },
  4681. "sequence": {
  4682. "$ref": "#/definitions/event/definitions/sequence"
  4683. },
  4684. "updated_at": {
  4685. "$ref": "#/definitions/event/definitions/updated_at"
  4686. },
  4687. "version": {
  4688. "$ref": "#/definitions/event/definitions/version"
  4689. }
  4690. }
  4691. },
  4692. "failed-event": {
  4693. "description": "A failed event represents a failure of an action performed on another API resource.",
  4694. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  4695. "stability": "development",
  4696. "strictProperties": true,
  4697. "title": "Heroku Platform API - Failed Event",
  4698. "type": [
  4699. "object"
  4700. ],
  4701. "definitions": {
  4702. "action": {
  4703. "description": "The attempted operation performed on the resource.",
  4704. "enum": [
  4705. "create",
  4706. "destroy",
  4707. "update",
  4708. "unknown"
  4709. ],
  4710. "example": "create",
  4711. "readOnly": true,
  4712. "type": [
  4713. "string"
  4714. ]
  4715. },
  4716. "error_id": {
  4717. "description": "ID of error raised.",
  4718. "example": "rate_limit",
  4719. "readOnly": true,
  4720. "type": [
  4721. "string",
  4722. "null"
  4723. ]
  4724. },
  4725. "message": {
  4726. "description": "A detailed error message.",
  4727. "example": "Your account reached the API rate limit\nPlease wait a few minutes before making new requests",
  4728. "readOnly": true,
  4729. "type": [
  4730. "string"
  4731. ]
  4732. },
  4733. "method": {
  4734. "description": "The HTTP method type of the failed action.",
  4735. "enum": [
  4736. "DELETE",
  4737. "GET",
  4738. "HEAD",
  4739. "OPTIONS",
  4740. "PATCH",
  4741. "POST",
  4742. "PUT"
  4743. ],
  4744. "example": "POST",
  4745. "readOnly": true,
  4746. "type": [
  4747. "string"
  4748. ]
  4749. },
  4750. "code": {
  4751. "description": "An HTTP status code.",
  4752. "example": 404,
  4753. "readOnly": true,
  4754. "type": [
  4755. "integer",
  4756. "null"
  4757. ]
  4758. },
  4759. "identity": {
  4760. "anyOf": [
  4761. {
  4762. "$ref": "#/definitions/event/definitions/id"
  4763. }
  4764. ]
  4765. },
  4766. "path": {
  4767. "description": "The path of the attempted operation.",
  4768. "example": "/apps/my-app",
  4769. "readOnly": true,
  4770. "type": [
  4771. "string"
  4772. ]
  4773. },
  4774. "resource_id": {
  4775. "description": "Unique identifier of a resource.",
  4776. "example": "01234567-89ab-cdef-0123-456789abcdef",
  4777. "format": "uuid",
  4778. "readOnly": true,
  4779. "type": [
  4780. "string"
  4781. ]
  4782. }
  4783. },
  4784. "links": [
  4785. ],
  4786. "properties": {
  4787. "action": {
  4788. "$ref": "#/definitions/failed-event/definitions/action"
  4789. },
  4790. "code": {
  4791. "$ref": "#/definitions/failed-event/definitions/code"
  4792. },
  4793. "error_id": {
  4794. "$ref": "#/definitions/failed-event/definitions/error_id"
  4795. },
  4796. "message": {
  4797. "$ref": "#/definitions/failed-event/definitions/message"
  4798. },
  4799. "method": {
  4800. "$ref": "#/definitions/failed-event/definitions/method"
  4801. },
  4802. "path": {
  4803. "$ref": "#/definitions/failed-event/definitions/path"
  4804. },
  4805. "resource": {
  4806. "description": "The related resource of the failed action.",
  4807. "properties": {
  4808. "id": {
  4809. "$ref": "#/definitions/failed-event/definitions/resource_id"
  4810. },
  4811. "name": {
  4812. "$ref": "#/definitions/event/definitions/resource"
  4813. }
  4814. },
  4815. "strictProperties": true,
  4816. "type": [
  4817. "object",
  4818. "null"
  4819. ]
  4820. }
  4821. }
  4822. },
  4823. "filter-apps": {
  4824. "description": "Filters are special endpoints to allow for API consumers to specify a subset of resources to consume in order to reduce the number of requests that are performed. Each filter endpoint endpoint is responsible for determining its supported request format. The endpoints are over POST in order to handle large request bodies without hitting request uri query length limitations, but the requests themselves are idempotent and will not have side effects.",
  4825. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  4826. "stability": "development",
  4827. "title": "Heroku Platform API - Filters",
  4828. "type": [
  4829. "object"
  4830. ],
  4831. "definitions": {
  4832. "filter": {
  4833. "type": [
  4834. "object"
  4835. ],
  4836. "properties": {
  4837. "in": {
  4838. "$ref": "#/definitions/filter-apps/definitions/in"
  4839. }
  4840. }
  4841. },
  4842. "in": {
  4843. "type": [
  4844. "object"
  4845. ],
  4846. "properties": {
  4847. "id": {
  4848. "$ref": "#/definitions/filter-apps/definitions/id"
  4849. }
  4850. }
  4851. },
  4852. "id": {
  4853. "type": [
  4854. "array"
  4855. ],
  4856. "items": {
  4857. "$ref": "#/definitions/app/definitions/id"
  4858. }
  4859. }
  4860. },
  4861. "links": [
  4862. {
  4863. "description": "Request an apps list filtered by app id.",
  4864. "title": "Apps",
  4865. "href": "/filters/apps",
  4866. "method": "POST",
  4867. "ranges": [
  4868. "id",
  4869. "name",
  4870. "updated_at"
  4871. ],
  4872. "rel": "instances",
  4873. "schema": {
  4874. "$ref": "#/definitions/filter-apps/definitions/filter"
  4875. },
  4876. "targetSchema": {
  4877. "items": {
  4878. "$ref": "#/definitions/team-app"
  4879. },
  4880. "type": [
  4881. "array"
  4882. ]
  4883. }
  4884. }
  4885. ]
  4886. },
  4887. "formation": {
  4888. "description": "The formation of processes that should be maintained for an app. Update the formation to scale processes or change dyno sizes. Available process type names and commands are defined by the `process_types` attribute for the [slug](#slug) currently released on an app.",
  4889. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  4890. "stability": "production",
  4891. "strictProperties": true,
  4892. "title": "Heroku Platform API - Formation",
  4893. "type": [
  4894. "object"
  4895. ],
  4896. "definitions": {
  4897. "command": {
  4898. "description": "command to use to launch this process",
  4899. "example": "bundle exec rails server -p $PORT",
  4900. "readOnly": false,
  4901. "type": [
  4902. "string"
  4903. ]
  4904. },
  4905. "created_at": {
  4906. "description": "when process type was created",
  4907. "example": "2012-01-01T12:00:00Z",
  4908. "format": "date-time",
  4909. "readOnly": true,
  4910. "type": [
  4911. "string"
  4912. ]
  4913. },
  4914. "id": {
  4915. "description": "unique identifier of this process type",
  4916. "example": "01234567-89ab-cdef-0123-456789abcdef",
  4917. "format": "uuid",
  4918. "readOnly": true,
  4919. "type": [
  4920. "string"
  4921. ]
  4922. },
  4923. "identity": {
  4924. "anyOf": [
  4925. {
  4926. "$ref": "#/definitions/formation/definitions/id"
  4927. },
  4928. {
  4929. "$ref": "#/definitions/formation/definitions/type"
  4930. }
  4931. ]
  4932. },
  4933. "quantity": {
  4934. "description": "number of processes to maintain",
  4935. "example": 1,
  4936. "readOnly": false,
  4937. "type": [
  4938. "integer"
  4939. ]
  4940. },
  4941. "size": {
  4942. "description": "dyno size (default: \"standard-1X\")",
  4943. "example": "standard-1X",
  4944. "readOnly": false,
  4945. "type": [
  4946. "string"
  4947. ]
  4948. },
  4949. "type": {
  4950. "description": "type of process to maintain",
  4951. "example": "web",
  4952. "readOnly": true,
  4953. "pattern": "^[-\\w]{1,128}$",
  4954. "type": [
  4955. "string"
  4956. ]
  4957. },
  4958. "updated_at": {
  4959. "description": "when dyno type was updated",
  4960. "example": "2012-01-01T12:00:00Z",
  4961. "format": "date-time",
  4962. "readOnly": true,
  4963. "type": [
  4964. "string"
  4965. ]
  4966. },
  4967. "update": {
  4968. "additionalProperties": false,
  4969. "description": "Properties to update a process type",
  4970. "properties": {
  4971. "quantity": {
  4972. "$ref": "#/definitions/formation/definitions/quantity"
  4973. },
  4974. "size": {
  4975. "$ref": "#/definitions/formation/definitions/size"
  4976. },
  4977. "type": {
  4978. "$ref": "#/definitions/formation/definitions/type"
  4979. }
  4980. },
  4981. "readOnly": false,
  4982. "required": [
  4983. "type"
  4984. ],
  4985. "type": [
  4986. "object"
  4987. ]
  4988. }
  4989. },
  4990. "links": [
  4991. {
  4992. "description": "Info for a process type",
  4993. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/formation/{(%23%2Fdefinitions%2Fformation%2Fdefinitions%2Fidentity)}",
  4994. "method": "GET",
  4995. "rel": "self",
  4996. "targetSchema": {
  4997. "$ref": "#/definitions/formation"
  4998. },
  4999. "title": "Info"
  5000. },
  5001. {
  5002. "description": "List process type formation",
  5003. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/formation",
  5004. "method": "GET",
  5005. "rel": "instances",
  5006. "targetSchema": {
  5007. "items": {
  5008. "$ref": "#/definitions/formation"
  5009. },
  5010. "type": [
  5011. "array"
  5012. ]
  5013. },
  5014. "title": "List"
  5015. },
  5016. {
  5017. "description": "Batch update process types",
  5018. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/formation",
  5019. "method": "PATCH",
  5020. "rel": "update",
  5021. "schema": {
  5022. "properties": {
  5023. "updates": {
  5024. "type": [
  5025. "array"
  5026. ],
  5027. "items": {
  5028. "$ref": "#/definitions/formation/definitions/update"
  5029. },
  5030. "description": "Array with formation updates. Each element must have \"type\", the id or name of the process type to be updated, and can optionally update its \"quantity\" or \"size\"."
  5031. }
  5032. },
  5033. "required": [
  5034. "updates"
  5035. ],
  5036. "type": [
  5037. "object"
  5038. ]
  5039. },
  5040. "targetSchema": {
  5041. "items": {
  5042. "$ref": "#/definitions/formation"
  5043. },
  5044. "type": [
  5045. "array"
  5046. ]
  5047. },
  5048. "title": "Batch update"
  5049. },
  5050. {
  5051. "description": "Update process type",
  5052. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/formation/{(%23%2Fdefinitions%2Fformation%2Fdefinitions%2Fidentity)}",
  5053. "method": "PATCH",
  5054. "rel": "update",
  5055. "schema": {
  5056. "properties": {
  5057. "quantity": {
  5058. "$ref": "#/definitions/formation/definitions/quantity"
  5059. },
  5060. "size": {
  5061. "$ref": "#/definitions/formation/definitions/size"
  5062. }
  5063. },
  5064. "type": [
  5065. "object"
  5066. ]
  5067. },
  5068. "targetSchema": {
  5069. "$ref": "#/definitions/formation"
  5070. },
  5071. "title": "Update",
  5072. "type": [
  5073. "object"
  5074. ]
  5075. }
  5076. ],
  5077. "properties": {
  5078. "app": {
  5079. "description": "app formation belongs to",
  5080. "properties": {
  5081. "name": {
  5082. "$ref": "#/definitions/app/definitions/name"
  5083. },
  5084. "id": {
  5085. "$ref": "#/definitions/app/definitions/id"
  5086. }
  5087. },
  5088. "type": [
  5089. "object"
  5090. ]
  5091. },
  5092. "command": {
  5093. "$ref": "#/definitions/formation/definitions/command"
  5094. },
  5095. "created_at": {
  5096. "$ref": "#/definitions/formation/definitions/created_at"
  5097. },
  5098. "id": {
  5099. "$ref": "#/definitions/formation/definitions/id"
  5100. },
  5101. "quantity": {
  5102. "$ref": "#/definitions/formation/definitions/quantity"
  5103. },
  5104. "size": {
  5105. "$ref": "#/definitions/formation/definitions/size"
  5106. },
  5107. "type": {
  5108. "$ref": "#/definitions/formation/definitions/type"
  5109. },
  5110. "updated_at": {
  5111. "$ref": "#/definitions/formation/definitions/updated_at"
  5112. }
  5113. }
  5114. },
  5115. "identity-provider": {
  5116. "description": "Identity Providers represent the SAML configuration of an Organization.",
  5117. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  5118. "stability": "production",
  5119. "strictProperties": true,
  5120. "title": "Heroku Platform API - Identity Provider",
  5121. "type": [
  5122. "object"
  5123. ],
  5124. "definitions": {
  5125. "certificate": {
  5126. "description": "raw contents of the public certificate (eg: .crt or .pem file)",
  5127. "example": "-----BEGIN CERTIFICATE----- ...",
  5128. "readOnly": false,
  5129. "type": [
  5130. "string"
  5131. ]
  5132. },
  5133. "created_at": {
  5134. "description": "when provider record was created",
  5135. "example": "2012-01-01T12:00:00Z",
  5136. "format": "date-time",
  5137. "readOnly": true,
  5138. "type": [
  5139. "string"
  5140. ]
  5141. },
  5142. "entity_id": {
  5143. "description": "URL identifier provided by the identity provider",
  5144. "example": "https://customer-domain.idp.com",
  5145. "readOnly": false,
  5146. "type": [
  5147. "string"
  5148. ]
  5149. },
  5150. "id": {
  5151. "description": "unique identifier of this identity provider",
  5152. "example": "01234567-89ab-cdef-0123-456789abcdef",
  5153. "format": "uuid",
  5154. "readOnly": true,
  5155. "type": [
  5156. "string"
  5157. ]
  5158. },
  5159. "slo_target_url": {
  5160. "description": "single log out URL for this identity provider",
  5161. "example": "https://example.com/idp/logout",
  5162. "readOnly": false,
  5163. "type": [
  5164. "string"
  5165. ]
  5166. },
  5167. "sso_target_url": {
  5168. "description": "single sign on URL for this identity provider",
  5169. "example": "https://example.com/idp/login",
  5170. "readOnly": false,
  5171. "type": [
  5172. "string"
  5173. ]
  5174. },
  5175. "updated_at": {
  5176. "description": "when the identity provider record was updated",
  5177. "example": "2012-01-01T12:00:00Z",
  5178. "format": "date-time",
  5179. "readOnly": true,
  5180. "type": [
  5181. "string"
  5182. ]
  5183. }
  5184. },
  5185. "links": [
  5186. {
  5187. "description": "Get a list of an organization's Identity Providers",
  5188. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fname)}/identity-providers",
  5189. "method": "GET",
  5190. "rel": "instances",
  5191. "targetSchema": {
  5192. "items": {
  5193. "$ref": "#/definitions/identity-provider"
  5194. },
  5195. "type": [
  5196. "array"
  5197. ]
  5198. },
  5199. "title": "List"
  5200. },
  5201. {
  5202. "description": "Create an Identity Provider for an organization",
  5203. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fname)}/identity-providers",
  5204. "method": "POST",
  5205. "rel": "create",
  5206. "schema": {
  5207. "properties": {
  5208. "certificate": {
  5209. "$ref": "#/definitions/identity-provider/definitions/certificate"
  5210. },
  5211. "entity_id": {
  5212. "$ref": "#/definitions/identity-provider/definitions/entity_id"
  5213. },
  5214. "slo_target_url": {
  5215. "$ref": "#/definitions/identity-provider/definitions/slo_target_url"
  5216. },
  5217. "sso_target_url": {
  5218. "$ref": "#/definitions/identity-provider/definitions/sso_target_url"
  5219. }
  5220. },
  5221. "required": [
  5222. "certificate",
  5223. "sso_target_url",
  5224. "entity_id"
  5225. ],
  5226. "type": [
  5227. "object"
  5228. ]
  5229. },
  5230. "targetSchema": {
  5231. "$ref": "#/definitions/identity-provider"
  5232. },
  5233. "title": "Create"
  5234. },
  5235. {
  5236. "description": "Update an organization's Identity Provider",
  5237. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fname)}/identity-providers/{(%23%2Fdefinitions%2Fidentity-provider%2Fdefinitions%2Fid)}",
  5238. "method": "PATCH",
  5239. "rel": "update",
  5240. "schema": {
  5241. "properties": {
  5242. "certificate": {
  5243. "$ref": "#/definitions/identity-provider/definitions/certificate"
  5244. },
  5245. "entity_id": {
  5246. "$ref": "#/definitions/identity-provider/definitions/entity_id"
  5247. },
  5248. "slo_target_url": {
  5249. "$ref": "#/definitions/identity-provider/definitions/slo_target_url"
  5250. },
  5251. "sso_target_url": {
  5252. "$ref": "#/definitions/identity-provider/definitions/sso_target_url"
  5253. }
  5254. },
  5255. "type": [
  5256. "object"
  5257. ]
  5258. },
  5259. "targetSchema": {
  5260. "$ref": "#/definitions/identity-provider"
  5261. },
  5262. "title": "Update"
  5263. },
  5264. {
  5265. "description": "Delete an organization's Identity Provider",
  5266. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fname)}/identity-providers/{(%23%2Fdefinitions%2Fidentity-provider%2Fdefinitions%2Fid)}",
  5267. "method": "DELETE",
  5268. "rel": "destroy",
  5269. "targetSchema": {
  5270. "$ref": "#/definitions/identity-provider"
  5271. },
  5272. "title": "Delete"
  5273. },
  5274. {
  5275. "description": "Get a list of a team's Identity Providers",
  5276. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/identity-providers",
  5277. "method": "GET",
  5278. "rel": "instances",
  5279. "targetSchema": {
  5280. "items": {
  5281. "$ref": "#/definitions/identity-provider"
  5282. },
  5283. "type": [
  5284. "array"
  5285. ]
  5286. },
  5287. "title": "List"
  5288. },
  5289. {
  5290. "description": "Create an Identity Provider for a team",
  5291. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/identity-providers",
  5292. "method": "POST",
  5293. "rel": "create",
  5294. "schema": {
  5295. "properties": {
  5296. "certificate": {
  5297. "$ref": "#/definitions/identity-provider/definitions/certificate"
  5298. },
  5299. "entity_id": {
  5300. "$ref": "#/definitions/identity-provider/definitions/entity_id"
  5301. },
  5302. "slo_target_url": {
  5303. "$ref": "#/definitions/identity-provider/definitions/slo_target_url"
  5304. },
  5305. "sso_target_url": {
  5306. "$ref": "#/definitions/identity-provider/definitions/sso_target_url"
  5307. }
  5308. },
  5309. "required": [
  5310. "certificate",
  5311. "sso_target_url",
  5312. "entity_id"
  5313. ],
  5314. "type": [
  5315. "object"
  5316. ]
  5317. },
  5318. "targetSchema": {
  5319. "$ref": "#/definitions/identity-provider"
  5320. },
  5321. "title": "Create"
  5322. },
  5323. {
  5324. "description": "Update a team's Identity Provider",
  5325. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/identity-providers/{(%23%2Fdefinitions%2Fidentity-provider%2Fdefinitions%2Fid)}",
  5326. "method": "PATCH",
  5327. "rel": "update",
  5328. "schema": {
  5329. "properties": {
  5330. "certificate": {
  5331. "$ref": "#/definitions/identity-provider/definitions/certificate"
  5332. },
  5333. "entity_id": {
  5334. "$ref": "#/definitions/identity-provider/definitions/entity_id"
  5335. },
  5336. "slo_target_url": {
  5337. "$ref": "#/definitions/identity-provider/definitions/slo_target_url"
  5338. },
  5339. "sso_target_url": {
  5340. "$ref": "#/definitions/identity-provider/definitions/sso_target_url"
  5341. }
  5342. },
  5343. "type": [
  5344. "object"
  5345. ]
  5346. },
  5347. "targetSchema": {
  5348. "$ref": "#/definitions/identity-provider"
  5349. },
  5350. "title": "Update"
  5351. },
  5352. {
  5353. "description": "Delete a team's Identity Provider",
  5354. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fname)}/identity-providers/{(%23%2Fdefinitions%2Fidentity-provider%2Fdefinitions%2Fid)}",
  5355. "method": "DELETE",
  5356. "rel": "destroy",
  5357. "targetSchema": {
  5358. "$ref": "#/definitions/identity-provider"
  5359. },
  5360. "title": "Delete"
  5361. }
  5362. ],
  5363. "properties": {
  5364. "certificate": {
  5365. "$ref": "#/definitions/identity-provider/definitions/certificate"
  5366. },
  5367. "created_at": {
  5368. "$ref": "#/definitions/identity-provider/definitions/created_at"
  5369. },
  5370. "entity_id": {
  5371. "$ref": "#/definitions/identity-provider/definitions/entity_id"
  5372. },
  5373. "id": {
  5374. "$ref": "#/definitions/identity-provider/definitions/id"
  5375. },
  5376. "slo_target_url": {
  5377. "$ref": "#/definitions/identity-provider/definitions/slo_target_url"
  5378. },
  5379. "sso_target_url": {
  5380. "$ref": "#/definitions/identity-provider/definitions/sso_target_url"
  5381. },
  5382. "organization": {
  5383. "description": "organization associated with this identity provider",
  5384. "properties": {
  5385. "name": {
  5386. "$ref": "#/definitions/organization/definitions/name"
  5387. }
  5388. },
  5389. "type": [
  5390. "null",
  5391. "object"
  5392. ]
  5393. },
  5394. "updated_at": {
  5395. "$ref": "#/definitions/identity-provider/definitions/updated_at"
  5396. }
  5397. }
  5398. },
  5399. "inbound-ruleset": {
  5400. "description": "An inbound-ruleset is a collection of rules that specify what hosts can or cannot connect to an application.",
  5401. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  5402. "stability": "prototype",
  5403. "strictProperties": true,
  5404. "title": "Heroku Platform API - Inbound Ruleset",
  5405. "type": [
  5406. "object"
  5407. ],
  5408. "definitions": {
  5409. "action": {
  5410. "description": "states whether the connection is allowed or denied",
  5411. "example": "allow",
  5412. "readOnly": false,
  5413. "type": [
  5414. "string"
  5415. ],
  5416. "enum": [
  5417. "allow",
  5418. "deny"
  5419. ]
  5420. },
  5421. "source": {
  5422. "description": "is the request’s source in CIDR notation",
  5423. "example": "1.1.1.1/1",
  5424. "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$",
  5425. "readOnly": false,
  5426. "type": [
  5427. "string"
  5428. ]
  5429. },
  5430. "created_at": {
  5431. "description": "when inbound-ruleset was created",
  5432. "example": "2012-01-01T12:00:00Z",
  5433. "format": "date-time",
  5434. "readOnly": true,
  5435. "type": [
  5436. "string"
  5437. ]
  5438. },
  5439. "id": {
  5440. "description": "unique identifier of an inbound-ruleset",
  5441. "example": "01234567-89ab-cdef-0123-456789abcdef",
  5442. "format": "uuid",
  5443. "readOnly": true,
  5444. "type": [
  5445. "string"
  5446. ]
  5447. },
  5448. "identity": {
  5449. "anyOf": [
  5450. {
  5451. "$ref": "#/definitions/inbound-ruleset/definitions/id"
  5452. }
  5453. ]
  5454. },
  5455. "rule": {
  5456. "description": "the combination of an IP address in CIDR notation and whether to allow or deny it's traffic.",
  5457. "type": [
  5458. "object"
  5459. ],
  5460. "properties": {
  5461. "action": {
  5462. "$ref": "#/definitions/inbound-ruleset/definitions/action"
  5463. },
  5464. "source": {
  5465. "$ref": "#/definitions/inbound-ruleset/definitions/source"
  5466. }
  5467. },
  5468. "required": [
  5469. "source",
  5470. "action"
  5471. ]
  5472. }
  5473. },
  5474. "links": [
  5475. {
  5476. "description": "Current inbound ruleset for a space",
  5477. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/inbound-ruleset",
  5478. "method": "GET",
  5479. "rel": "self",
  5480. "targetSchema": {
  5481. "$ref": "#/definitions/inbound-ruleset"
  5482. },
  5483. "title": "Info"
  5484. },
  5485. {
  5486. "description": "Info on an existing Inbound Ruleset",
  5487. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/inbound-rulesets/{(%23%2Fdefinitions%2Finbound-ruleset%2Fdefinitions%2Fidentity)}",
  5488. "method": "GET",
  5489. "rel": "self",
  5490. "targetSchema": {
  5491. "$ref": "#/definitions/inbound-ruleset"
  5492. },
  5493. "title": "Info"
  5494. },
  5495. {
  5496. "description": "List all inbound rulesets for a space",
  5497. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/inbound-rulesets",
  5498. "method": "GET",
  5499. "rel": "instances",
  5500. "targetSchema": {
  5501. "items": {
  5502. "$ref": "#/definitions/inbound-ruleset"
  5503. },
  5504. "type": [
  5505. "array"
  5506. ]
  5507. },
  5508. "title": "List"
  5509. },
  5510. {
  5511. "description": "Create a new inbound ruleset",
  5512. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/inbound-ruleset",
  5513. "method": "PUT",
  5514. "rel": "create",
  5515. "schema": {
  5516. "type": [
  5517. "object"
  5518. ],
  5519. "properties": {
  5520. "rules": {
  5521. "type": [
  5522. "array"
  5523. ],
  5524. "items": {
  5525. "$ref": "#/definitions/inbound-ruleset/definitions/rule"
  5526. }
  5527. }
  5528. }
  5529. },
  5530. "title": "Create"
  5531. }
  5532. ],
  5533. "properties": {
  5534. "id": {
  5535. "$ref": "#/definitions/inbound-ruleset/definitions/id"
  5536. },
  5537. "created_at": {
  5538. "$ref": "#/definitions/inbound-ruleset/definitions/created_at"
  5539. },
  5540. "rules": {
  5541. "type": [
  5542. "array"
  5543. ],
  5544. "items": {
  5545. "$ref": "#/definitions/inbound-ruleset/definitions/rule"
  5546. }
  5547. },
  5548. "created_by": {
  5549. "$ref": "#/definitions/account/definitions/email"
  5550. }
  5551. }
  5552. },
  5553. "invitation": {
  5554. "description": "An invitation represents an invite sent to a user to use the Heroku platform.",
  5555. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  5556. "stability": "production",
  5557. "strictProperties": true,
  5558. "title": "Heroku Platform API - Invitation",
  5559. "type": [
  5560. "object"
  5561. ],
  5562. "definitions": {
  5563. "created_at": {
  5564. "description": "when invitation was created",
  5565. "example": "2012-01-01T12:00:00Z",
  5566. "format": "date-time",
  5567. "readOnly": true,
  5568. "type": [
  5569. "string"
  5570. ]
  5571. },
  5572. "identity": {
  5573. "anyOf": [
  5574. {
  5575. "$ref": "#/definitions/invitation/definitions/token"
  5576. }
  5577. ]
  5578. },
  5579. "receive_newsletter": {
  5580. "description": "whether this user should receive a newsletter or not",
  5581. "example": false,
  5582. "readOnly": true,
  5583. "type": [
  5584. "boolean"
  5585. ]
  5586. },
  5587. "verification_required": {
  5588. "description": "if the invitation requires verification",
  5589. "example": false,
  5590. "readOnly": true,
  5591. "type": [
  5592. "boolean"
  5593. ]
  5594. },
  5595. "token": {
  5596. "description": "Unique identifier of an invitation",
  5597. "example": "01234567-89ab-cdef-0123-456789abcdef",
  5598. "format": "uuid",
  5599. "readOnly": true,
  5600. "type": [
  5601. "string"
  5602. ]
  5603. },
  5604. "phone_number": {
  5605. "description": "Phone number to send verification code",
  5606. "example": "+1 123-123-1234",
  5607. "type": [
  5608. "string"
  5609. ]
  5610. },
  5611. "method": {
  5612. "description": "Transport used to send verification code",
  5613. "example": "sms",
  5614. "default": "sms",
  5615. "type": [
  5616. "string"
  5617. ],
  5618. "enum": [
  5619. "call",
  5620. "sms"
  5621. ]
  5622. },
  5623. "verification_code": {
  5624. "description": "Value used to verify invitation",
  5625. "example": "123456",
  5626. "type": [
  5627. "string"
  5628. ]
  5629. }
  5630. },
  5631. "links": [
  5632. {
  5633. "description": "Info for invitation.",
  5634. "href": "/invitations/{(%23%2Fdefinitions%2Finvitation%2Fdefinitions%2Fidentity)}",
  5635. "method": "GET",
  5636. "rel": "self",
  5637. "title": "Info"
  5638. },
  5639. {
  5640. "description": "Invite a user.",
  5641. "href": "/invitations",
  5642. "method": "POST",
  5643. "rel": "self",
  5644. "schema": {
  5645. "properties": {
  5646. "email": {
  5647. "$ref": "#/definitions/account/definitions/email"
  5648. },
  5649. "name": {
  5650. "$ref": "#/definitions/account/definitions/name"
  5651. }
  5652. },
  5653. "required": [
  5654. "email",
  5655. "name"
  5656. ],
  5657. "type": [
  5658. "object"
  5659. ]
  5660. },
  5661. "title": "Create"
  5662. },
  5663. {
  5664. "description": "Send a verification code for an invitation via SMS/phone call.",
  5665. "href": "/invitations/{(%23%2Fdefinitions%2Finvitation%2Fdefinitions%2Fidentity)}/actions/send-verification",
  5666. "method": "POST",
  5667. "rel": "empty",
  5668. "schema": {
  5669. "properties": {
  5670. "phone_number": {
  5671. "$ref": "#/definitions/invitation/definitions/phone_number"
  5672. },
  5673. "method": {
  5674. "$ref": "#/definitions/invitation/definitions/method"
  5675. }
  5676. },
  5677. "required": [
  5678. "phone_number"
  5679. ],
  5680. "type": [
  5681. "object"
  5682. ]
  5683. },
  5684. "title": "Send Verification Code"
  5685. },
  5686. {
  5687. "description": "Verify an invitation using a verification code.",
  5688. "href": "/invitations/{(%23%2Fdefinitions%2Finvitation%2Fdefinitions%2Fidentity)}/actions/verify",
  5689. "method": "POST",
  5690. "rel": "self",
  5691. "schema": {
  5692. "properties": {
  5693. "verification_code": {
  5694. "$ref": "#/definitions/invitation/definitions/verification_code"
  5695. }
  5696. },
  5697. "required": [
  5698. "verification_code"
  5699. ],
  5700. "type": [
  5701. "object"
  5702. ]
  5703. },
  5704. "title": "Verify"
  5705. },
  5706. {
  5707. "description": "Finalize Invitation and Create Account.",
  5708. "href": "/invitations/{(%23%2Fdefinitions%2Finvitation%2Fdefinitions%2Fidentity)}",
  5709. "method": "PATCH",
  5710. "rel": "update",
  5711. "schema": {
  5712. "properties": {
  5713. "password": {
  5714. "$ref": "#/definitions/account/definitions/password"
  5715. },
  5716. "password_confirmation": {
  5717. "$ref": "#/definitions/account/definitions/password"
  5718. },
  5719. "receive_newsletter": {
  5720. "$ref": "#/definitions/invitation/definitions/receive_newsletter"
  5721. }
  5722. },
  5723. "required": [
  5724. "password",
  5725. "password_confirmation"
  5726. ],
  5727. "type": [
  5728. "object"
  5729. ]
  5730. },
  5731. "title": "Finalize"
  5732. }
  5733. ],
  5734. "properties": {
  5735. "verification_required": {
  5736. "$ref": "#/definitions/invitation/definitions/verification_required"
  5737. },
  5738. "created_at": {
  5739. "$ref": "#/definitions/invitation/definitions/created_at"
  5740. },
  5741. "user": {
  5742. "properties": {
  5743. "email": {
  5744. "$ref": "#/definitions/account/definitions/email"
  5745. },
  5746. "id": {
  5747. "$ref": "#/definitions/account/definitions/id"
  5748. }
  5749. },
  5750. "strictProperties": true,
  5751. "type": [
  5752. "object"
  5753. ]
  5754. }
  5755. }
  5756. },
  5757. "invoice-address": {
  5758. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  5759. "description": "An invoice address represents the address that should be listed on an invoice.",
  5760. "title": "Heroku Vault API - Invoice Address",
  5761. "stability": "development",
  5762. "type": [
  5763. "object"
  5764. ],
  5765. "definitions": {
  5766. "address_1": {
  5767. "type": [
  5768. "string"
  5769. ],
  5770. "description": "invoice street address line 1",
  5771. "example": "40 Hickory Blvd."
  5772. },
  5773. "address_2": {
  5774. "type": [
  5775. "string"
  5776. ],
  5777. "description": "invoice street address line 2",
  5778. "example": "Suite 300"
  5779. },
  5780. "city": {
  5781. "type": [
  5782. "string"
  5783. ],
  5784. "description": "invoice city",
  5785. "example": "Seattle"
  5786. },
  5787. "country": {
  5788. "type": [
  5789. "string"
  5790. ],
  5791. "description": "country",
  5792. "example": "US"
  5793. },
  5794. "heroku_id": {
  5795. "type": [
  5796. "string"
  5797. ],
  5798. "description": "heroku_id identifier reference",
  5799. "example": "user930223902@heroku.com",
  5800. "readOnly": true
  5801. },
  5802. "identity": {
  5803. "anyOf": [
  5804. {
  5805. "$ref": "#/definitions/invoice-address/definitions/heroku_id"
  5806. }
  5807. ]
  5808. },
  5809. "other": {
  5810. "type": [
  5811. "string"
  5812. ],
  5813. "description": "metadata / additional information to go on invoice",
  5814. "example": "Company ABC Inc. VAT 903820"
  5815. },
  5816. "postal_code": {
  5817. "type": [
  5818. "string"
  5819. ],
  5820. "description": "invoice zip code",
  5821. "example": "98101"
  5822. },
  5823. "state": {
  5824. "type": [
  5825. "string"
  5826. ],
  5827. "description": "invoice state",
  5828. "example": "WA"
  5829. },
  5830. "use_invoice_address": {
  5831. "type": [
  5832. "boolean"
  5833. ],
  5834. "description": "flag to use the invoice address for an account or not",
  5835. "example": true,
  5836. "default": false
  5837. }
  5838. },
  5839. "links": [
  5840. {
  5841. "description": "Retrieve existing invoice address.",
  5842. "href": "/account/invoice-address",
  5843. "method": "GET",
  5844. "rel": "self",
  5845. "title": "info"
  5846. },
  5847. {
  5848. "description": "Update invoice address for an account.",
  5849. "href": "/account/invoice-address",
  5850. "method": "PUT",
  5851. "rel": "self",
  5852. "title": "update",
  5853. "schema": {
  5854. "properties": {
  5855. "address_1": {
  5856. "$ref": "#/definitions/invoice-address/definitions/address_1"
  5857. },
  5858. "address_2": {
  5859. "$ref": "#/definitions/invoice-address/definitions/address_2"
  5860. },
  5861. "city": {
  5862. "$ref": "#/definitions/invoice-address/definitions/city"
  5863. },
  5864. "country": {
  5865. "$ref": "#/definitions/invoice-address/definitions/country"
  5866. },
  5867. "other": {
  5868. "$ref": "#/definitions/invoice-address/definitions/other"
  5869. },
  5870. "postal_code": {
  5871. "$ref": "#/definitions/invoice-address/definitions/postal_code"
  5872. },
  5873. "state": {
  5874. "$ref": "#/definitions/invoice-address/definitions/state"
  5875. },
  5876. "use_invoice_address": {
  5877. "$ref": "#/definitions/invoice-address/definitions/use_invoice_address"
  5878. }
  5879. },
  5880. "type": [
  5881. "object"
  5882. ]
  5883. }
  5884. }
  5885. ],
  5886. "properties": {
  5887. "address_1": {
  5888. "$ref": "#/definitions/invoice-address/definitions/address_1"
  5889. },
  5890. "address_2": {
  5891. "$ref": "#/definitions/invoice-address/definitions/address_2"
  5892. },
  5893. "city": {
  5894. "$ref": "#/definitions/invoice-address/definitions/city"
  5895. },
  5896. "country": {
  5897. "$ref": "#/definitions/invoice-address/definitions/country"
  5898. },
  5899. "heroku_id": {
  5900. "$ref": "#/definitions/invoice-address/definitions/identity"
  5901. },
  5902. "other": {
  5903. "$ref": "#/definitions/invoice-address/definitions/other"
  5904. },
  5905. "postal_code": {
  5906. "$ref": "#/definitions/invoice-address/definitions/postal_code"
  5907. },
  5908. "state": {
  5909. "$ref": "#/definitions/invoice-address/definitions/state"
  5910. },
  5911. "use_invoice_address": {
  5912. "$ref": "#/definitions/invoice-address/definitions/use_invoice_address"
  5913. }
  5914. }
  5915. },
  5916. "invoice": {
  5917. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  5918. "description": "An invoice is an itemized bill of goods for an account which includes pricing and charges.",
  5919. "stability": "development",
  5920. "strictProperties": true,
  5921. "title": "Heroku Platform API - Invoice",
  5922. "type": [
  5923. "object"
  5924. ],
  5925. "definitions": {
  5926. "charges_total": {
  5927. "description": "total charges on this invoice",
  5928. "example": 100.0,
  5929. "readOnly": true,
  5930. "type": [
  5931. "number"
  5932. ]
  5933. },
  5934. "created_at": {
  5935. "description": "when invoice was created",
  5936. "example": "2012-01-01T12:00:00Z",
  5937. "format": "date-time",
  5938. "readOnly": true,
  5939. "type": [
  5940. "string"
  5941. ]
  5942. },
  5943. "credits_total": {
  5944. "description": "total credits on this invoice",
  5945. "example": 100.0,
  5946. "readOnly": true,
  5947. "type": [
  5948. "number"
  5949. ]
  5950. },
  5951. "id": {
  5952. "description": "unique identifier of this invoice",
  5953. "example": "01234567-89ab-cdef-0123-456789abcdef",
  5954. "format": "uuid",
  5955. "readOnly": true,
  5956. "type": [
  5957. "string"
  5958. ]
  5959. },
  5960. "identity": {
  5961. "anyOf": [
  5962. {
  5963. "$ref": "#/definitions/invoice/definitions/number"
  5964. }
  5965. ]
  5966. },
  5967. "number": {
  5968. "description": "human readable invoice number",
  5969. "example": 9403943,
  5970. "readOnly": true,
  5971. "type": [
  5972. "integer"
  5973. ]
  5974. },
  5975. "period_end": {
  5976. "description": "the ending date that the invoice covers",
  5977. "example": "01/31/2014",
  5978. "readOnly": true,
  5979. "type": [
  5980. "string"
  5981. ]
  5982. },
  5983. "period_start": {
  5984. "description": "the starting date that this invoice covers",
  5985. "example": "01/01/2014",
  5986. "readOnly": true,
  5987. "type": [
  5988. "string"
  5989. ]
  5990. },
  5991. "state": {
  5992. "description": "payment status for this invoice (pending, successful, failed)",
  5993. "example": 1,
  5994. "readOnly": true,
  5995. "type": [
  5996. "integer"
  5997. ]
  5998. },
  5999. "total": {
  6000. "description": "combined total of charges and credits on this invoice",
  6001. "example": 100.0,
  6002. "readOnly": true,
  6003. "type": [
  6004. "number"
  6005. ]
  6006. },
  6007. "updated_at": {
  6008. "description": "when invoice was updated",
  6009. "example": "2012-01-01T12:00:00Z",
  6010. "format": "date-time",
  6011. "readOnly": true,
  6012. "type": [
  6013. "string"
  6014. ]
  6015. }
  6016. },
  6017. "links": [
  6018. {
  6019. "description": "Info for existing invoice.",
  6020. "href": "/account/invoices/{(%23%2Fdefinitions%2Finvoice%2Fdefinitions%2Fidentity)}",
  6021. "method": "GET",
  6022. "rel": "self",
  6023. "targetSchema": {
  6024. "$ref": "#/definitions/invoice"
  6025. },
  6026. "title": "Info"
  6027. },
  6028. {
  6029. "description": "List existing invoices.",
  6030. "href": "/account/invoices",
  6031. "method": "GET",
  6032. "rel": "instances",
  6033. "targetSchema": {
  6034. "items": {
  6035. "$ref": "#/definitions/invoice"
  6036. },
  6037. "type": [
  6038. "array"
  6039. ]
  6040. },
  6041. "title": "List"
  6042. }
  6043. ],
  6044. "properties": {
  6045. "charges_total": {
  6046. "$ref": "#/definitions/invoice/definitions/charges_total"
  6047. },
  6048. "created_at": {
  6049. "$ref": "#/definitions/invoice/definitions/created_at"
  6050. },
  6051. "credits_total": {
  6052. "$ref": "#/definitions/invoice/definitions/credits_total"
  6053. },
  6054. "id": {
  6055. "$ref": "#/definitions/invoice/definitions/id"
  6056. },
  6057. "number": {
  6058. "$ref": "#/definitions/invoice/definitions/number"
  6059. },
  6060. "period_end": {
  6061. "$ref": "#/definitions/invoice/definitions/period_end"
  6062. },
  6063. "period_start": {
  6064. "$ref": "#/definitions/invoice/definitions/period_start"
  6065. },
  6066. "state": {
  6067. "$ref": "#/definitions/invoice/definitions/state"
  6068. },
  6069. "total": {
  6070. "$ref": "#/definitions/invoice/definitions/total"
  6071. },
  6072. "updated_at": {
  6073. "$ref": "#/definitions/invoice/definitions/updated_at"
  6074. }
  6075. }
  6076. },
  6077. "key": {
  6078. "description": "Keys represent public SSH keys associated with an account and are used to authorize accounts as they are performing git operations.",
  6079. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  6080. "stability": "production",
  6081. "strictProperties": true,
  6082. "title": "Heroku Platform API - Key",
  6083. "type": [
  6084. "object"
  6085. ],
  6086. "definitions": {
  6087. "comment": {
  6088. "description": "comment on the key",
  6089. "example": "username@host",
  6090. "readOnly": true,
  6091. "type": [
  6092. "string"
  6093. ]
  6094. },
  6095. "created_at": {
  6096. "description": "when key was created",
  6097. "example": "2012-01-01T12:00:00Z",
  6098. "format": "date-time",
  6099. "readOnly": true,
  6100. "type": [
  6101. "string"
  6102. ]
  6103. },
  6104. "email": {
  6105. "deprecated": true,
  6106. "description": "deprecated. Please refer to 'comment' instead",
  6107. "example": "username@host",
  6108. "readOnly": true,
  6109. "type": [
  6110. "string"
  6111. ]
  6112. },
  6113. "fingerprint": {
  6114. "description": "a unique identifying string based on contents",
  6115. "example": "17:63:a4:ba:24:d3:7f:af:17:c8:94:82:7e:80:56:bf",
  6116. "readOnly": true,
  6117. "type": [
  6118. "string"
  6119. ]
  6120. },
  6121. "id": {
  6122. "description": "unique identifier of this key",
  6123. "example": "01234567-89ab-cdef-0123-456789abcdef",
  6124. "format": "uuid",
  6125. "readOnly": true,
  6126. "type": [
  6127. "string"
  6128. ]
  6129. },
  6130. "identity": {
  6131. "anyOf": [
  6132. {
  6133. "$ref": "#/definitions/key/definitions/id"
  6134. },
  6135. {
  6136. "$ref": "#/definitions/key/definitions/fingerprint"
  6137. }
  6138. ]
  6139. },
  6140. "public_key": {
  6141. "description": "full public_key as uploaded",
  6142. "example": "ssh-rsa AAAAB3NzaC1ycVc/../839Uv username@example.com",
  6143. "readOnly": true,
  6144. "type": [
  6145. "string"
  6146. ]
  6147. },
  6148. "updated_at": {
  6149. "description": "when key was updated",
  6150. "example": "2012-01-01T12:00:00Z",
  6151. "format": "date-time",
  6152. "readOnly": true,
  6153. "type": [
  6154. "string"
  6155. ]
  6156. }
  6157. },
  6158. "links": [
  6159. {
  6160. "description": "Info for existing key.",
  6161. "href": "/account/keys/{(%23%2Fdefinitions%2Fkey%2Fdefinitions%2Fidentity)}",
  6162. "method": "GET",
  6163. "rel": "self",
  6164. "targetSchema": {
  6165. "$ref": "#/definitions/key"
  6166. },
  6167. "title": "Info"
  6168. },
  6169. {
  6170. "description": "List existing keys.",
  6171. "href": "/account/keys",
  6172. "method": "GET",
  6173. "rel": "instances",
  6174. "targetSchema": {
  6175. "items": {
  6176. "$ref": "#/definitions/key"
  6177. },
  6178. "type": [
  6179. "array"
  6180. ]
  6181. },
  6182. "title": "List"
  6183. }
  6184. ],
  6185. "properties": {
  6186. "comment": {
  6187. "$ref": "#/definitions/key/definitions/comment"
  6188. },
  6189. "created_at": {
  6190. "$ref": "#/definitions/key/definitions/created_at"
  6191. },
  6192. "email": {
  6193. "$ref": "#/definitions/key/definitions/email"
  6194. },
  6195. "fingerprint": {
  6196. "$ref": "#/definitions/key/definitions/fingerprint"
  6197. },
  6198. "id": {
  6199. "$ref": "#/definitions/key/definitions/id"
  6200. },
  6201. "public_key": {
  6202. "$ref": "#/definitions/key/definitions/public_key"
  6203. },
  6204. "updated_at": {
  6205. "$ref": "#/definitions/key/definitions/updated_at"
  6206. }
  6207. }
  6208. },
  6209. "log-drain": {
  6210. "description": "[Log drains](https://devcenter.heroku.com/articles/log-drains) provide a way to forward your Heroku logs to an external syslog server for long-term archiving. This external service must be configured to receive syslog packets from Heroku, whereupon its URL can be added to an app using this API. Some add-ons will add a log drain when they are provisioned to an app. These drains can only be removed by removing the add-on.",
  6211. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  6212. "stability": "production",
  6213. "strictProperties": true,
  6214. "title": "Heroku Platform API - Log Drain",
  6215. "type": [
  6216. "object"
  6217. ],
  6218. "definitions": {
  6219. "addon": {
  6220. "description": "add-on that created the drain",
  6221. "example": {
  6222. "id": "01234567-89ab-cdef-0123-456789abcdef",
  6223. "name": "singing-swiftly-1242"
  6224. },
  6225. "properties": {
  6226. "id": {
  6227. "$ref": "#/definitions/add-on/definitions/id"
  6228. },
  6229. "name": {
  6230. "$ref": "#/definitions/add-on/definitions/name"
  6231. }
  6232. },
  6233. "readOnly": true,
  6234. "type": [
  6235. "object",
  6236. "null"
  6237. ]
  6238. },
  6239. "created_at": {
  6240. "description": "when log drain was created",
  6241. "example": "2012-01-01T12:00:00Z",
  6242. "format": "date-time",
  6243. "readOnly": true,
  6244. "type": [
  6245. "string"
  6246. ]
  6247. },
  6248. "id": {
  6249. "description": "unique identifier of this log drain",
  6250. "example": "01234567-89ab-cdef-0123-456789abcdef",
  6251. "format": "uuid",
  6252. "readOnly": true,
  6253. "type": [
  6254. "string"
  6255. ]
  6256. },
  6257. "query_identity": {
  6258. "anyOf": [
  6259. {
  6260. "$ref": "#/definitions/log-drain/definitions/id"
  6261. },
  6262. {
  6263. "$ref": "#/definitions/log-drain/definitions/url"
  6264. },
  6265. {
  6266. "$ref": "#/definitions/log-drain/definitions/token"
  6267. }
  6268. ]
  6269. },
  6270. "identity": {
  6271. "anyOf": [
  6272. {
  6273. "$ref": "#/definitions/log-drain/definitions/url"
  6274. }
  6275. ]
  6276. },
  6277. "token": {
  6278. "description": "token associated with the log drain",
  6279. "example": "d.01234567-89ab-cdef-0123-456789abcdef",
  6280. "readOnly": true,
  6281. "type": [
  6282. "string"
  6283. ]
  6284. },
  6285. "updated_at": {
  6286. "description": "when log drain was updated",
  6287. "example": "2012-01-01T12:00:00Z",
  6288. "format": "date-time",
  6289. "readOnly": true,
  6290. "type": [
  6291. "string"
  6292. ]
  6293. },
  6294. "url": {
  6295. "description": "url associated with the log drain",
  6296. "example": "https://example.com/drain",
  6297. "readOnly": true,
  6298. "type": [
  6299. "string"
  6300. ]
  6301. }
  6302. },
  6303. "links": [
  6304. {
  6305. "description": "Create a new log drain.",
  6306. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/log-drains",
  6307. "method": "POST",
  6308. "rel": "create",
  6309. "schema": {
  6310. "properties": {
  6311. "url": {
  6312. "$ref": "#/definitions/log-drain/definitions/url"
  6313. }
  6314. },
  6315. "required": [
  6316. "url"
  6317. ],
  6318. "type": [
  6319. "object"
  6320. ]
  6321. },
  6322. "targetSchema": {
  6323. "$ref": "#/definitions/log-drain"
  6324. },
  6325. "title": "Create"
  6326. },
  6327. {
  6328. "description": "Delete an existing log drain. Log drains added by add-ons can only be removed by removing the add-on.",
  6329. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/log-drains/{(%23%2Fdefinitions%2Flog-drain%2Fdefinitions%2Fquery_identity)}",
  6330. "method": "DELETE",
  6331. "rel": "destroy",
  6332. "targetSchema": {
  6333. "$ref": "#/definitions/log-drain"
  6334. },
  6335. "title": "Delete"
  6336. },
  6337. {
  6338. "description": "Info for existing log drain.",
  6339. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/log-drains/{(%23%2Fdefinitions%2Flog-drain%2Fdefinitions%2Fquery_identity)}",
  6340. "method": "GET",
  6341. "rel": "self",
  6342. "targetSchema": {
  6343. "$ref": "#/definitions/log-drain"
  6344. },
  6345. "title": "Info"
  6346. },
  6347. {
  6348. "description": "List existing log drains.",
  6349. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/log-drains",
  6350. "method": "GET",
  6351. "rel": "instances",
  6352. "targetSchema": {
  6353. "items": {
  6354. "$ref": "#/definitions/log-drain"
  6355. },
  6356. "type": [
  6357. "array"
  6358. ]
  6359. },
  6360. "title": "List"
  6361. }
  6362. ],
  6363. "properties": {
  6364. "addon": {
  6365. "$ref": "#/definitions/log-drain/definitions/addon"
  6366. },
  6367. "created_at": {
  6368. "$ref": "#/definitions/log-drain/definitions/created_at"
  6369. },
  6370. "id": {
  6371. "$ref": "#/definitions/log-drain/definitions/id"
  6372. },
  6373. "token": {
  6374. "$ref": "#/definitions/log-drain/definitions/token"
  6375. },
  6376. "updated_at": {
  6377. "$ref": "#/definitions/log-drain/definitions/updated_at"
  6378. },
  6379. "url": {
  6380. "$ref": "#/definitions/log-drain/definitions/url"
  6381. }
  6382. }
  6383. },
  6384. "log-session": {
  6385. "description": "A log session is a reference to the http based log stream for an app.",
  6386. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  6387. "stability": "production",
  6388. "strictProperties": true,
  6389. "title": "Heroku Platform API - Log Session",
  6390. "type": [
  6391. "object"
  6392. ],
  6393. "definitions": {
  6394. "created_at": {
  6395. "description": "when log connection was created",
  6396. "example": "2012-01-01T12:00:00Z",
  6397. "format": "date-time",
  6398. "readOnly": true,
  6399. "type": [
  6400. "string"
  6401. ]
  6402. },
  6403. "dyno": {
  6404. "description": "dyno to limit results to",
  6405. "example": "web.1",
  6406. "readOnly": false,
  6407. "type": [
  6408. "string"
  6409. ]
  6410. },
  6411. "id": {
  6412. "description": "unique identifier of this log session",
  6413. "example": "01234567-89ab-cdef-0123-456789abcdef",
  6414. "format": "uuid",
  6415. "readOnly": true,
  6416. "type": [
  6417. "string"
  6418. ]
  6419. },
  6420. "identity": {
  6421. "anyOf": [
  6422. {
  6423. "$ref": "#/definitions/log-session/definitions/id"
  6424. }
  6425. ]
  6426. },
  6427. "lines": {
  6428. "description": "number of log lines to stream at once",
  6429. "example": 10,
  6430. "readOnly": false,
  6431. "type": [
  6432. "integer"
  6433. ]
  6434. },
  6435. "logplex_url": {
  6436. "description": "URL for log streaming session",
  6437. "example": "https://logplex.heroku.com/sessions/01234567-89ab-cdef-0123-456789abcdef?srv=1325419200",
  6438. "readOnly": true,
  6439. "type": [
  6440. "string"
  6441. ]
  6442. },
  6443. "source": {
  6444. "description": "log source to limit results to",
  6445. "example": "app",
  6446. "readOnly": false,
  6447. "type": [
  6448. "string"
  6449. ]
  6450. },
  6451. "tail": {
  6452. "description": "whether to stream ongoing logs",
  6453. "example": true,
  6454. "readOnly": false,
  6455. "type": [
  6456. "boolean"
  6457. ]
  6458. },
  6459. "updated_at": {
  6460. "description": "when log session was updated",
  6461. "example": "2012-01-01T12:00:00Z",
  6462. "format": "date-time",
  6463. "readOnly": true,
  6464. "type": [
  6465. "string"
  6466. ]
  6467. }
  6468. },
  6469. "links": [
  6470. {
  6471. "description": "Create a new log session.",
  6472. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/log-sessions",
  6473. "method": "POST",
  6474. "rel": "create",
  6475. "schema": {
  6476. "properties": {
  6477. "dyno": {
  6478. "$ref": "#/definitions/log-session/definitions/dyno"
  6479. },
  6480. "lines": {
  6481. "$ref": "#/definitions/log-session/definitions/lines"
  6482. },
  6483. "source": {
  6484. "$ref": "#/definitions/log-session/definitions/source"
  6485. },
  6486. "tail": {
  6487. "$ref": "#/definitions/log-session/definitions/tail"
  6488. }
  6489. },
  6490. "type": [
  6491. "object"
  6492. ]
  6493. },
  6494. "targetSchema": {
  6495. "$ref": "#/definitions/log-session"
  6496. },
  6497. "title": "Create"
  6498. }
  6499. ],
  6500. "properties": {
  6501. "created_at": {
  6502. "$ref": "#/definitions/log-session/definitions/created_at"
  6503. },
  6504. "id": {
  6505. "$ref": "#/definitions/log-session/definitions/id"
  6506. },
  6507. "logplex_url": {
  6508. "$ref": "#/definitions/log-session/definitions/logplex_url"
  6509. },
  6510. "updated_at": {
  6511. "$ref": "#/definitions/log-session/definitions/updated_at"
  6512. }
  6513. }
  6514. },
  6515. "oauth-authorization": {
  6516. "description": "OAuth authorizations represent clients that a Heroku user has authorized to automate, customize or extend their usage of the platform. For more information please refer to the [Heroku OAuth documentation](https://devcenter.heroku.com/articles/oauth)",
  6517. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  6518. "stability": "production",
  6519. "strictProperties": true,
  6520. "title": "Heroku Platform API - OAuth Authorization",
  6521. "type": [
  6522. "object"
  6523. ],
  6524. "definitions": {
  6525. "created_at": {
  6526. "description": "when OAuth authorization was created",
  6527. "example": "2012-01-01T12:00:00Z",
  6528. "format": "date-time",
  6529. "readOnly": true,
  6530. "type": [
  6531. "string"
  6532. ]
  6533. },
  6534. "description": {
  6535. "description": "human-friendly description of this OAuth authorization",
  6536. "example": "sample authorization",
  6537. "readOnly": true,
  6538. "type": [
  6539. "string"
  6540. ]
  6541. },
  6542. "id": {
  6543. "description": "unique identifier of OAuth authorization",
  6544. "example": "01234567-89ab-cdef-0123-456789abcdef",
  6545. "format": "uuid",
  6546. "readOnly": true,
  6547. "type": [
  6548. "string"
  6549. ]
  6550. },
  6551. "identity": {
  6552. "anyOf": [
  6553. {
  6554. "$ref": "#/definitions/oauth-authorization/definitions/id"
  6555. }
  6556. ]
  6557. },
  6558. "scope": {
  6559. "description": "The scope of access OAuth authorization allows",
  6560. "example": [
  6561. "global"
  6562. ],
  6563. "readOnly": true,
  6564. "type": [
  6565. "array"
  6566. ],
  6567. "items": {
  6568. "type": [
  6569. "string"
  6570. ]
  6571. }
  6572. },
  6573. "updated_at": {
  6574. "description": "when OAuth authorization was updated",
  6575. "example": "2012-01-01T12:00:00Z",
  6576. "format": "date-time",
  6577. "readOnly": true,
  6578. "type": [
  6579. "string"
  6580. ]
  6581. }
  6582. },
  6583. "links": [
  6584. {
  6585. "description": "Create a new OAuth authorization.",
  6586. "href": "/oauth/authorizations",
  6587. "method": "POST",
  6588. "rel": "create",
  6589. "schema": {
  6590. "properties": {
  6591. "client": {
  6592. "$ref": "#/definitions/oauth-client/definitions/identity"
  6593. },
  6594. "description": {
  6595. "$ref": "#/definitions/oauth-authorization/definitions/description"
  6596. },
  6597. "expires_in": {
  6598. "$ref": "#/definitions/oauth-token/definitions/expires_in"
  6599. },
  6600. "scope": {
  6601. "$ref": "#/definitions/oauth-authorization/definitions/scope"
  6602. }
  6603. },
  6604. "required": [
  6605. "scope"
  6606. ],
  6607. "type": [
  6608. "object"
  6609. ]
  6610. },
  6611. "targetSchema": {
  6612. "$ref": "#/definitions/oauth-authorization"
  6613. },
  6614. "title": "Create"
  6615. },
  6616. {
  6617. "description": "Delete OAuth authorization.",
  6618. "href": "/oauth/authorizations/{(%23%2Fdefinitions%2Foauth-authorization%2Fdefinitions%2Fidentity)}",
  6619. "method": "DELETE",
  6620. "rel": "destroy",
  6621. "targetSchema": {
  6622. "$ref": "#/definitions/oauth-authorization"
  6623. },
  6624. "title": "Delete"
  6625. },
  6626. {
  6627. "description": "Info for an OAuth authorization.",
  6628. "href": "/oauth/authorizations/{(%23%2Fdefinitions%2Foauth-authorization%2Fdefinitions%2Fidentity)}",
  6629. "method": "GET",
  6630. "rel": "self",
  6631. "targetSchema": {
  6632. "$ref": "#/definitions/oauth-authorization"
  6633. },
  6634. "title": "Info"
  6635. },
  6636. {
  6637. "description": "List OAuth authorizations.",
  6638. "href": "/oauth/authorizations",
  6639. "method": "GET",
  6640. "rel": "instances",
  6641. "targetSchema": {
  6642. "items": {
  6643. "$ref": "#/definitions/oauth-authorization"
  6644. },
  6645. "type": [
  6646. "array"
  6647. ]
  6648. },
  6649. "title": "List"
  6650. },
  6651. {
  6652. "description": "Regenerate OAuth tokens. This endpoint is only available to direct authorizations or privileged OAuth clients.",
  6653. "href": "/oauth/authorizations/{(%23%2Fdefinitions%2Foauth-authorization%2Fdefinitions%2Fidentity)}/actions/regenerate-tokens",
  6654. "method": "POST",
  6655. "rel": "update",
  6656. "targetSchema": {
  6657. "$ref": "#/definitions/oauth-authorization"
  6658. },
  6659. "title": "Regenerate"
  6660. }
  6661. ],
  6662. "properties": {
  6663. "access_token": {
  6664. "description": "access token for this authorization",
  6665. "properties": {
  6666. "expires_in": {
  6667. "$ref": "#/definitions/oauth-token/definitions/expires_in"
  6668. },
  6669. "id": {
  6670. "$ref": "#/definitions/oauth-token/definitions/id"
  6671. },
  6672. "token": {
  6673. "$ref": "#/definitions/oauth-token/definitions/token"
  6674. }
  6675. },
  6676. "type": [
  6677. "null",
  6678. "object"
  6679. ]
  6680. },
  6681. "client": {
  6682. "description": "identifier of the client that obtained this authorization, if any",
  6683. "properties": {
  6684. "id": {
  6685. "$ref": "#/definitions/oauth-client/definitions/id"
  6686. },
  6687. "name": {
  6688. "$ref": "#/definitions/oauth-client/definitions/name"
  6689. },
  6690. "redirect_uri": {
  6691. "$ref": "#/definitions/oauth-client/definitions/redirect_uri"
  6692. }
  6693. },
  6694. "type": [
  6695. "null",
  6696. "object"
  6697. ]
  6698. },
  6699. "created_at": {
  6700. "$ref": "#/definitions/oauth-authorization/definitions/created_at"
  6701. },
  6702. "grant": {
  6703. "description": "this authorization's grant",
  6704. "properties": {
  6705. "code": {
  6706. "$ref": "#/definitions/oauth-grant/definitions/code"
  6707. },
  6708. "expires_in": {
  6709. "$ref": "#/definitions/oauth-grant/definitions/expires_in"
  6710. },
  6711. "id": {
  6712. "$ref": "#/definitions/oauth-grant/definitions/id"
  6713. }
  6714. },
  6715. "strictProperties": true,
  6716. "type": [
  6717. "null",
  6718. "object"
  6719. ]
  6720. },
  6721. "id": {
  6722. "$ref": "#/definitions/oauth-authorization/definitions/id"
  6723. },
  6724. "refresh_token": {
  6725. "description": "refresh token for this authorization",
  6726. "properties": {
  6727. "expires_in": {
  6728. "$ref": "#/definitions/oauth-token/definitions/expires_in"
  6729. },
  6730. "id": {
  6731. "$ref": "#/definitions/oauth-token/definitions/id"
  6732. },
  6733. "token": {
  6734. "$ref": "#/definitions/oauth-token/definitions/token"
  6735. }
  6736. },
  6737. "strictProperties": true,
  6738. "type": [
  6739. "null",
  6740. "object"
  6741. ]
  6742. },
  6743. "scope": {
  6744. "$ref": "#/definitions/oauth-authorization/definitions/scope"
  6745. },
  6746. "updated_at": {
  6747. "$ref": "#/definitions/oauth-authorization/definitions/updated_at"
  6748. },
  6749. "user": {
  6750. "description": "authenticated user associated with this authorization",
  6751. "properties": {
  6752. "id": {
  6753. "$ref": "#/definitions/account/definitions/id"
  6754. },
  6755. "email": {
  6756. "$ref": "#/definitions/account/definitions/email"
  6757. },
  6758. "full_name": {
  6759. "$ref": "#/definitions/account/definitions/name"
  6760. }
  6761. },
  6762. "strictProperties": true,
  6763. "type": [
  6764. "object"
  6765. ]
  6766. }
  6767. }
  6768. },
  6769. "oauth-client": {
  6770. "description": "OAuth clients are applications that Heroku users can authorize to automate, customize or extend their usage of the platform. For more information please refer to the [Heroku OAuth documentation](https://devcenter.heroku.com/articles/oauth).",
  6771. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  6772. "stability": "production",
  6773. "strictProperties": true,
  6774. "title": "Heroku Platform API - OAuth Client",
  6775. "type": [
  6776. "object"
  6777. ],
  6778. "definitions": {
  6779. "created_at": {
  6780. "description": "when OAuth client was created",
  6781. "example": "2012-01-01T12:00:00Z",
  6782. "format": "date-time",
  6783. "readOnly": true,
  6784. "type": [
  6785. "string"
  6786. ]
  6787. },
  6788. "id": {
  6789. "description": "unique identifier of this OAuth client",
  6790. "example": "01234567-89ab-cdef-0123-456789abcdef",
  6791. "format": "uuid",
  6792. "readOnly": true,
  6793. "type": [
  6794. "string"
  6795. ]
  6796. },
  6797. "identity": {
  6798. "anyOf": [
  6799. {
  6800. "$ref": "#/definitions/oauth-client/definitions/id"
  6801. }
  6802. ]
  6803. },
  6804. "ignores_delinquent": {
  6805. "description": "whether the client is still operable given a delinquent account",
  6806. "example": false,
  6807. "readOnly": true,
  6808. "type": [
  6809. "boolean",
  6810. "null"
  6811. ]
  6812. },
  6813. "name": {
  6814. "description": "OAuth client name",
  6815. "example": "example",
  6816. "readOnly": true,
  6817. "type": [
  6818. "string"
  6819. ]
  6820. },
  6821. "redirect_uri": {
  6822. "description": "endpoint for redirection after authorization with OAuth client",
  6823. "example": "https://example.com/auth/heroku/callback",
  6824. "readOnly": true,
  6825. "type": [
  6826. "string"
  6827. ]
  6828. },
  6829. "secret": {
  6830. "description": "secret used to obtain OAuth authorizations under this client",
  6831. "example": "01234567-89ab-cdef-0123-456789abcdef",
  6832. "readOnly": true,
  6833. "type": [
  6834. "string"
  6835. ]
  6836. },
  6837. "updated_at": {
  6838. "description": "when OAuth client was updated",
  6839. "example": "2012-01-01T12:00:00Z",
  6840. "format": "date-time",
  6841. "readOnly": true,
  6842. "type": [
  6843. "string"
  6844. ]
  6845. }
  6846. },
  6847. "links": [
  6848. {
  6849. "description": "Create a new OAuth client.",
  6850. "href": "/oauth/clients",
  6851. "method": "POST",
  6852. "rel": "create",
  6853. "schema": {
  6854. "properties": {
  6855. "name": {
  6856. "$ref": "#/definitions/oauth-client/definitions/name"
  6857. },
  6858. "redirect_uri": {
  6859. "$ref": "#/definitions/oauth-client/definitions/redirect_uri"
  6860. }
  6861. },
  6862. "required": [
  6863. "name",
  6864. "redirect_uri"
  6865. ],
  6866. "type": [
  6867. "object"
  6868. ]
  6869. },
  6870. "targetSchema": {
  6871. "$ref": "#/definitions/oauth-client"
  6872. },
  6873. "title": "Create"
  6874. },
  6875. {
  6876. "description": "Delete OAuth client.",
  6877. "href": "/oauth/clients/{(%23%2Fdefinitions%2Foauth-client%2Fdefinitions%2Fidentity)}",
  6878. "method": "DELETE",
  6879. "rel": "destroy",
  6880. "targetSchema": {
  6881. "$ref": "#/definitions/oauth-client"
  6882. },
  6883. "title": "Delete"
  6884. },
  6885. {
  6886. "description": "Info for an OAuth client",
  6887. "href": "/oauth/clients/{(%23%2Fdefinitions%2Foauth-client%2Fdefinitions%2Fidentity)}",
  6888. "method": "GET",
  6889. "rel": "self",
  6890. "title": "Info"
  6891. },
  6892. {
  6893. "description": "List OAuth clients",
  6894. "href": "/oauth/clients",
  6895. "method": "GET",
  6896. "rel": "instances",
  6897. "targetSchema": {
  6898. "items": {
  6899. "$ref": "#/definitions/oauth-client"
  6900. },
  6901. "type": [
  6902. "array"
  6903. ]
  6904. },
  6905. "title": "List"
  6906. },
  6907. {
  6908. "description": "Update OAuth client",
  6909. "href": "/oauth/clients/{(%23%2Fdefinitions%2Foauth-client%2Fdefinitions%2Fidentity)}",
  6910. "method": "PATCH",
  6911. "rel": "update",
  6912. "schema": {
  6913. "properties": {
  6914. "name": {
  6915. "$ref": "#/definitions/oauth-client/definitions/name"
  6916. },
  6917. "redirect_uri": {
  6918. "$ref": "#/definitions/oauth-client/definitions/redirect_uri"
  6919. }
  6920. },
  6921. "type": [
  6922. "object"
  6923. ]
  6924. },
  6925. "targetSchema": {
  6926. "$ref": "#/definitions/oauth-client"
  6927. },
  6928. "title": "Update"
  6929. },
  6930. {
  6931. "description": "Rotate credentials for an OAuth client",
  6932. "href": "/oauth/clients/{(%23%2Fdefinitions%2Foauth-client%2Fdefinitions%2Fidentity)}/actions/rotate-credentials",
  6933. "method": "POST",
  6934. "rel": "update",
  6935. "targetSchema": {
  6936. "$ref": "#/definitions/oauth-client"
  6937. },
  6938. "title": "Rotate Credentials"
  6939. }
  6940. ],
  6941. "properties": {
  6942. "created_at": {
  6943. "$ref": "#/definitions/oauth-client/definitions/created_at"
  6944. },
  6945. "id": {
  6946. "$ref": "#/definitions/oauth-client/definitions/id"
  6947. },
  6948. "ignores_delinquent": {
  6949. "$ref": "#/definitions/oauth-client/definitions/ignores_delinquent"
  6950. },
  6951. "name": {
  6952. "$ref": "#/definitions/oauth-client/definitions/name"
  6953. },
  6954. "redirect_uri": {
  6955. "$ref": "#/definitions/oauth-client/definitions/redirect_uri"
  6956. },
  6957. "secret": {
  6958. "$ref": "#/definitions/oauth-client/definitions/secret"
  6959. },
  6960. "updated_at": {
  6961. "$ref": "#/definitions/oauth-client/definitions/updated_at"
  6962. }
  6963. }
  6964. },
  6965. "oauth-grant": {
  6966. "description": "OAuth grants are used to obtain authorizations on behalf of a user. For more information please refer to the [Heroku OAuth documentation](https://devcenter.heroku.com/articles/oauth)",
  6967. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  6968. "stability": "production",
  6969. "strictProperties": true,
  6970. "title": "Heroku Platform API - OAuth Grant",
  6971. "type": [
  6972. "object"
  6973. ],
  6974. "definitions": {
  6975. "code": {
  6976. "description": "grant code received from OAuth web application authorization",
  6977. "example": "01234567-89ab-cdef-0123-456789abcdef",
  6978. "readOnly": true,
  6979. "type": [
  6980. "string"
  6981. ]
  6982. },
  6983. "expires_in": {
  6984. "description": "seconds until OAuth grant expires",
  6985. "example": 2592000,
  6986. "readOnly": true,
  6987. "type": [
  6988. "integer"
  6989. ]
  6990. },
  6991. "id": {
  6992. "description": "unique identifier of OAuth grant",
  6993. "example": "01234567-89ab-cdef-0123-456789abcdef",
  6994. "format": "uuid",
  6995. "readOnly": true,
  6996. "type": [
  6997. "string"
  6998. ]
  6999. },
  7000. "identity": {
  7001. "anyOf": [
  7002. {
  7003. "$ref": "#/definitions/oauth-grant/definitions/id"
  7004. }
  7005. ]
  7006. },
  7007. "type": {
  7008. "description": "type of grant requested, one of `authorization_code` or `refresh_token`",
  7009. "example": "authorization_code",
  7010. "readOnly": false,
  7011. "type": [
  7012. "string"
  7013. ]
  7014. }
  7015. },
  7016. "links": [
  7017. ],
  7018. "properties": {
  7019. }
  7020. },
  7021. "oauth-token": {
  7022. "description": "OAuth tokens provide access for authorized clients to act on behalf of a Heroku user to automate, customize or extend their usage of the platform. For more information please refer to the [Heroku OAuth documentation](https://devcenter.heroku.com/articles/oauth)",
  7023. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  7024. "stability": "production",
  7025. "strictProperties": true,
  7026. "title": "Heroku Platform API - OAuth Token",
  7027. "type": [
  7028. "object"
  7029. ],
  7030. "definitions": {
  7031. "created_at": {
  7032. "description": "when OAuth token was created",
  7033. "example": "2012-01-01T12:00:00Z",
  7034. "format": "date-time",
  7035. "readOnly": true,
  7036. "type": [
  7037. "string"
  7038. ]
  7039. },
  7040. "expires_in": {
  7041. "description": "seconds until OAuth token expires; may be `null` for tokens with indefinite lifetime",
  7042. "example": 2592000,
  7043. "readOnly": true,
  7044. "type": [
  7045. "null",
  7046. "integer"
  7047. ]
  7048. },
  7049. "id": {
  7050. "description": "unique identifier of OAuth token",
  7051. "example": "01234567-89ab-cdef-0123-456789abcdef",
  7052. "format": "uuid",
  7053. "readOnly": true,
  7054. "type": [
  7055. "string"
  7056. ]
  7057. },
  7058. "identity": {
  7059. "anyOf": [
  7060. {
  7061. "$ref": "#/definitions/oauth-token/definitions/id"
  7062. }
  7063. ]
  7064. },
  7065. "token": {
  7066. "description": "contents of the token to be used for authorization",
  7067. "example": "01234567-89ab-cdef-0123-456789abcdef",
  7068. "readOnly": true,
  7069. "type": [
  7070. "string"
  7071. ]
  7072. },
  7073. "updated_at": {
  7074. "description": "when OAuth token was updated",
  7075. "example": "2012-01-01T12:00:00Z",
  7076. "format": "date-time",
  7077. "readOnly": true,
  7078. "type": [
  7079. "string"
  7080. ]
  7081. }
  7082. },
  7083. "links": [
  7084. {
  7085. "description": "Create a new OAuth token.",
  7086. "href": "/oauth/tokens",
  7087. "method": "POST",
  7088. "rel": "create",
  7089. "schema": {
  7090. "properties": {
  7091. "client": {
  7092. "type": [
  7093. "object"
  7094. ],
  7095. "properties": {
  7096. "secret": {
  7097. "$ref": "#/definitions/oauth-client/definitions/secret"
  7098. }
  7099. }
  7100. },
  7101. "grant": {
  7102. "type": [
  7103. "object"
  7104. ],
  7105. "properties": {
  7106. "code": {
  7107. "$ref": "#/definitions/oauth-grant/definitions/code"
  7108. },
  7109. "type": {
  7110. "$ref": "#/definitions/oauth-grant/definitions/type"
  7111. }
  7112. }
  7113. },
  7114. "refresh_token": {
  7115. "type": [
  7116. "object"
  7117. ],
  7118. "properties": {
  7119. "token": {
  7120. "$ref": "#/definitions/oauth-token/definitions/token"
  7121. }
  7122. }
  7123. }
  7124. },
  7125. "required": [
  7126. "grant",
  7127. "client",
  7128. "refresh_token"
  7129. ],
  7130. "type": [
  7131. "object"
  7132. ]
  7133. },
  7134. "targetSchema": {
  7135. "$ref": "#/definitions/oauth-token"
  7136. },
  7137. "title": "Create"
  7138. },
  7139. {
  7140. "description": "Revoke OAuth access token.",
  7141. "href": "/oauth/tokens/{(%23%2Fdefinitions%2Foauth-token%2Fdefinitions%2Fidentity)}",
  7142. "method": "DELETE",
  7143. "rel": "destroy",
  7144. "targetSchema": {
  7145. "$ref": "#/definitions/oauth-token"
  7146. },
  7147. "title": "Delete"
  7148. }
  7149. ],
  7150. "properties": {
  7151. "access_token": {
  7152. "description": "current access token",
  7153. "properties": {
  7154. "expires_in": {
  7155. "$ref": "#/definitions/oauth-token/definitions/expires_in"
  7156. },
  7157. "id": {
  7158. "$ref": "#/definitions/oauth-token/definitions/id"
  7159. },
  7160. "token": {
  7161. "$ref": "#/definitions/oauth-token/definitions/token"
  7162. }
  7163. },
  7164. "strictProperties": true,
  7165. "type": [
  7166. "object"
  7167. ]
  7168. },
  7169. "authorization": {
  7170. "description": "authorization for this set of tokens",
  7171. "properties": {
  7172. "id": {
  7173. "$ref": "#/definitions/oauth-authorization/definitions/id"
  7174. }
  7175. },
  7176. "strictProperties": true,
  7177. "type": [
  7178. "object"
  7179. ]
  7180. },
  7181. "client": {
  7182. "description": "OAuth client secret used to obtain token",
  7183. "properties": {
  7184. "secret": {
  7185. "$ref": "#/definitions/oauth-client/definitions/secret"
  7186. }
  7187. },
  7188. "strictProperties": true,
  7189. "type": [
  7190. "null",
  7191. "object"
  7192. ]
  7193. },
  7194. "created_at": {
  7195. "$ref": "#/definitions/oauth-token/definitions/created_at"
  7196. },
  7197. "grant": {
  7198. "description": "grant used on the underlying authorization",
  7199. "properties": {
  7200. "code": {
  7201. "$ref": "#/definitions/oauth-grant/definitions/code"
  7202. },
  7203. "type": {
  7204. "$ref": "#/definitions/oauth-grant/definitions/type"
  7205. }
  7206. },
  7207. "strictProperties": true,
  7208. "type": [
  7209. "object"
  7210. ]
  7211. },
  7212. "id": {
  7213. "$ref": "#/definitions/oauth-token/definitions/id"
  7214. },
  7215. "refresh_token": {
  7216. "description": "refresh token for this authorization",
  7217. "properties": {
  7218. "expires_in": {
  7219. "$ref": "#/definitions/oauth-token/definitions/expires_in"
  7220. },
  7221. "id": {
  7222. "$ref": "#/definitions/oauth-token/definitions/id"
  7223. },
  7224. "token": {
  7225. "$ref": "#/definitions/oauth-token/definitions/token"
  7226. }
  7227. },
  7228. "strictProperties": true,
  7229. "type": [
  7230. "object"
  7231. ]
  7232. },
  7233. "session": {
  7234. "description": "OAuth session using this token",
  7235. "properties": {
  7236. "id": {
  7237. "$ref": "#/definitions/oauth-token/definitions/id"
  7238. }
  7239. },
  7240. "strictProperties": true,
  7241. "type": [
  7242. "object"
  7243. ]
  7244. },
  7245. "updated_at": {
  7246. "$ref": "#/definitions/oauth-token/definitions/updated_at"
  7247. },
  7248. "user": {
  7249. "description": "Reference to the user associated with this token",
  7250. "properties": {
  7251. "id": {
  7252. "$ref": "#/definitions/account/definitions/id"
  7253. }
  7254. },
  7255. "strictProperties": true,
  7256. "type": [
  7257. "object"
  7258. ]
  7259. }
  7260. }
  7261. },
  7262. "organization-add-on": {
  7263. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  7264. "description": "Deprecated: A list of add-ons the Organization uses across all apps",
  7265. "stability": "production",
  7266. "deprecated_at": "2017-04-10",
  7267. "title": "Heroku Platform API - Organization Add-on",
  7268. "type": [
  7269. "object"
  7270. ],
  7271. "links": [
  7272. {
  7273. "description": "List add-ons used across all Organization apps",
  7274. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/addons",
  7275. "method": "GET",
  7276. "rel": "instances",
  7277. "targetSchema": {
  7278. "items": {
  7279. "$ref": "#/definitions/add-on"
  7280. },
  7281. "type": [
  7282. "array"
  7283. ]
  7284. },
  7285. "title": "List For Organization"
  7286. }
  7287. ]
  7288. },
  7289. "organization-app-collaborator": {
  7290. "description": "Deprecated: An organization collaborator represents an account that has been given access to an organization app on Heroku.",
  7291. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  7292. "stability": "prototype",
  7293. "deprecated_at": "2017-04-10",
  7294. "title": "Heroku Platform API - Organization App Collaborator",
  7295. "type": [
  7296. "object"
  7297. ],
  7298. "definitions": {
  7299. "identity": {
  7300. "anyOf": [
  7301. {
  7302. "$ref": "#/definitions/collaborator/definitions/email"
  7303. }
  7304. ]
  7305. }
  7306. },
  7307. "links": [
  7308. {
  7309. "description": "Create a new collaborator on an organization app. Use this endpoint instead of the `/apps/{app_id_or_name}/collaborator` endpoint when you want the collaborator to be granted [permissions] (https://devcenter.heroku.com/articles/org-users-access#roles-and-app-permissions) according to their role in the organization.",
  7310. "href": "/organizations/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/collaborators",
  7311. "method": "POST",
  7312. "rel": "create",
  7313. "schema": {
  7314. "properties": {
  7315. "permissions": {
  7316. "type": [
  7317. "array"
  7318. ],
  7319. "items": {
  7320. "$ref": "#/definitions/organization-app-permission/definitions/name"
  7321. },
  7322. "description": "An array of permissions to give to the collaborator."
  7323. },
  7324. "silent": {
  7325. "$ref": "#/definitions/collaborator/definitions/silent"
  7326. },
  7327. "user": {
  7328. "$ref": "#/definitions/account/definitions/identity"
  7329. }
  7330. },
  7331. "required": [
  7332. "user"
  7333. ],
  7334. "type": [
  7335. "object"
  7336. ]
  7337. },
  7338. "targetSchema": {
  7339. "$ref": "#/definitions/organization-app-collaborator"
  7340. },
  7341. "title": "Create"
  7342. },
  7343. {
  7344. "description": "Delete an existing collaborator from an organization app.",
  7345. "href": "/organizations/apps/{(%23%2Fdefinitions%2Forganization-app%2Fdefinitions%2Fidentity)}/collaborators/{(%23%2Fdefinitions%2Forganization-app-collaborator%2Fdefinitions%2Fidentity)}",
  7346. "method": "DELETE",
  7347. "rel": "destroy",
  7348. "targetSchema": {
  7349. "$ref": "#/definitions/organization-app-collaborator"
  7350. },
  7351. "title": "Delete"
  7352. },
  7353. {
  7354. "description": "Info for a collaborator on an organization app.",
  7355. "href": "/organizations/apps/{(%23%2Fdefinitions%2Forganization-app%2Fdefinitions%2Fidentity)}/collaborators/{(%23%2Fdefinitions%2Forganization-app-collaborator%2Fdefinitions%2Fidentity)}",
  7356. "method": "GET",
  7357. "rel": "self",
  7358. "targetSchema": {
  7359. "$ref": "#/definitions/organization-app-collaborator"
  7360. },
  7361. "title": "Info"
  7362. },
  7363. {
  7364. "description": "Update an existing collaborator from an organization app.",
  7365. "href": "/organizations/apps/{(%23%2Fdefinitions%2Forganization-app%2Fdefinitions%2Fidentity)}/collaborators/{(%23%2Fdefinitions%2Forganization-app-collaborator%2Fdefinitions%2Fidentity)}",
  7366. "method": "PATCH",
  7367. "rel": "update",
  7368. "schema": {
  7369. "properties": {
  7370. "permissions": {
  7371. "type": [
  7372. "array"
  7373. ],
  7374. "items": {
  7375. "$ref": "#/definitions/organization-app-permission/definitions/name"
  7376. },
  7377. "description": "An array of permissions to give to the collaborator."
  7378. }
  7379. },
  7380. "required": [
  7381. "permissions"
  7382. ],
  7383. "type": [
  7384. "object"
  7385. ]
  7386. },
  7387. "targetSchema": {
  7388. "$ref": "#/definitions/organization-app-collaborator"
  7389. },
  7390. "title": "Update"
  7391. },
  7392. {
  7393. "description": "List collaborators on an organization app.",
  7394. "href": "/organizations/apps/{(%23%2Fdefinitions%2Forganization-app%2Fdefinitions%2Fidentity)}/collaborators",
  7395. "method": "GET",
  7396. "rel": "instances",
  7397. "targetSchema": {
  7398. "items": {
  7399. "$ref": "#/definitions/organization-app-collaborator"
  7400. },
  7401. "type": [
  7402. "array"
  7403. ]
  7404. },
  7405. "title": "List"
  7406. }
  7407. ],
  7408. "properties": {
  7409. "app": {
  7410. "description": "app collaborator belongs to",
  7411. "properties": {
  7412. "name": {
  7413. "$ref": "#/definitions/app/definitions/name"
  7414. },
  7415. "id": {
  7416. "$ref": "#/definitions/app/definitions/id"
  7417. }
  7418. },
  7419. "strictProperties": true,
  7420. "type": [
  7421. "object"
  7422. ]
  7423. },
  7424. "created_at": {
  7425. "$ref": "#/definitions/collaborator/definitions/created_at"
  7426. },
  7427. "id": {
  7428. "$ref": "#/definitions/collaborator/definitions/id"
  7429. },
  7430. "role": {
  7431. "$ref": "#/definitions/organization/definitions/role"
  7432. },
  7433. "updated_at": {
  7434. "$ref": "#/definitions/collaborator/definitions/updated_at"
  7435. },
  7436. "user": {
  7437. "description": "identity of collaborated account",
  7438. "properties": {
  7439. "email": {
  7440. "$ref": "#/definitions/account/definitions/email"
  7441. },
  7442. "federated": {
  7443. "$ref": "#/definitions/account/definitions/federated"
  7444. },
  7445. "id": {
  7446. "$ref": "#/definitions/account/definitions/id"
  7447. }
  7448. },
  7449. "strictProperties": true,
  7450. "type": [
  7451. "object"
  7452. ]
  7453. }
  7454. }
  7455. },
  7456. "organization-app": {
  7457. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  7458. "description": "Deprecated: An organization app encapsulates the organization specific functionality of Heroku apps.",
  7459. "stability": "prototype",
  7460. "deprecated_at": "2017-04-10",
  7461. "title": "Heroku Platform API - Organization App",
  7462. "type": [
  7463. "object"
  7464. ],
  7465. "definitions": {
  7466. "locked": {
  7467. "default": false,
  7468. "description": "are other organization members forbidden from joining this app.",
  7469. "example": false,
  7470. "type": [
  7471. "boolean"
  7472. ]
  7473. },
  7474. "identity": {
  7475. "anyOf": [
  7476. {
  7477. "$ref": "#/definitions/app/definitions/name"
  7478. }
  7479. ]
  7480. },
  7481. "joined": {
  7482. "default": false,
  7483. "description": "is the current member a collaborator on this app.",
  7484. "example": false,
  7485. "type": [
  7486. "boolean"
  7487. ]
  7488. },
  7489. "personal": {
  7490. "default": false,
  7491. "description": "force creation of the app in the user account even if a default org is set.",
  7492. "example": false,
  7493. "type": [
  7494. "boolean"
  7495. ]
  7496. }
  7497. },
  7498. "links": [
  7499. {
  7500. "description": "Create a new app in the specified organization, in the default organization if unspecified, or in personal account, if default organization is not set.",
  7501. "href": "/organizations/apps",
  7502. "method": "POST",
  7503. "rel": "create",
  7504. "schema": {
  7505. "properties": {
  7506. "locked": {
  7507. "$ref": "#/definitions/organization-app/definitions/locked"
  7508. },
  7509. "name": {
  7510. "$ref": "#/definitions/app/definitions/name"
  7511. },
  7512. "organization": {
  7513. "$ref": "#/definitions/organization/definitions/name"
  7514. },
  7515. "personal": {
  7516. "$ref": "#/definitions/organization-app/definitions/personal"
  7517. },
  7518. "region": {
  7519. "$ref": "#/definitions/region/definitions/name"
  7520. },
  7521. "space": {
  7522. "$ref": "#/definitions/space/definitions/name"
  7523. },
  7524. "stack": {
  7525. "$ref": "#/definitions/stack/definitions/name"
  7526. }
  7527. },
  7528. "type": [
  7529. "object"
  7530. ]
  7531. },
  7532. "title": "Create"
  7533. },
  7534. {
  7535. "description": "List apps in the default organization, or in personal account, if default organization is not set.",
  7536. "href": "/organizations/apps",
  7537. "method": "GET",
  7538. "rel": "instances",
  7539. "targetSchema": {
  7540. "items": {
  7541. "$ref": "#/definitions/organization-app"
  7542. },
  7543. "type": [
  7544. "array"
  7545. ]
  7546. },
  7547. "title": "List"
  7548. },
  7549. {
  7550. "description": "List organization apps.",
  7551. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/apps",
  7552. "method": "GET",
  7553. "rel": "instances",
  7554. "targetSchema": {
  7555. "items": {
  7556. "$ref": "#/definitions/organization-app"
  7557. },
  7558. "type": [
  7559. "array"
  7560. ]
  7561. },
  7562. "title": "List For Organization"
  7563. },
  7564. {
  7565. "description": "Info for an organization app.",
  7566. "href": "/organizations/apps/{(%23%2Fdefinitions%2Forganization-app%2Fdefinitions%2Fidentity)}",
  7567. "method": "GET",
  7568. "rel": "self",
  7569. "title": "Info"
  7570. },
  7571. {
  7572. "description": "Lock or unlock an organization app.",
  7573. "href": "/organizations/apps/{(%23%2Fdefinitions%2Forganization-app%2Fdefinitions%2Fidentity)}",
  7574. "method": "PATCH",
  7575. "rel": "update",
  7576. "schema": {
  7577. "properties": {
  7578. "locked": {
  7579. "$ref": "#/definitions/organization-app/definitions/locked"
  7580. }
  7581. },
  7582. "required": [
  7583. "locked"
  7584. ],
  7585. "type": [
  7586. "object"
  7587. ]
  7588. },
  7589. "targetSchema": {
  7590. "$ref": "#/definitions/organization-app"
  7591. },
  7592. "title": "Update Locked"
  7593. },
  7594. {
  7595. "description": "Transfer an existing organization app to another Heroku account.",
  7596. "href": "/organizations/apps/{(%23%2Fdefinitions%2Forganization-app%2Fdefinitions%2Fidentity)}",
  7597. "method": "PATCH",
  7598. "rel": "update",
  7599. "schema": {
  7600. "properties": {
  7601. "owner": {
  7602. "$ref": "#/definitions/account/definitions/identity"
  7603. }
  7604. },
  7605. "required": [
  7606. "owner"
  7607. ],
  7608. "type": [
  7609. "object"
  7610. ]
  7611. },
  7612. "title": "Transfer to Account"
  7613. },
  7614. {
  7615. "description": "Transfer an existing organization app to another organization.",
  7616. "href": "/organizations/apps/{(%23%2Fdefinitions%2Forganization-app%2Fdefinitions%2Fidentity)}",
  7617. "method": "PATCH",
  7618. "rel": "update",
  7619. "schema": {
  7620. "properties": {
  7621. "owner": {
  7622. "$ref": "#/definitions/organization/definitions/name"
  7623. }
  7624. },
  7625. "required": [
  7626. "owner"
  7627. ],
  7628. "type": [
  7629. "object"
  7630. ]
  7631. },
  7632. "targetSchema": {
  7633. "$ref": "#/definitions/organization-app"
  7634. },
  7635. "title": "Transfer to Organization"
  7636. }
  7637. ],
  7638. "properties": {
  7639. "archived_at": {
  7640. "$ref": "#/definitions/app/definitions/archived_at"
  7641. },
  7642. "buildpack_provided_description": {
  7643. "$ref": "#/definitions/app/definitions/buildpack_provided_description"
  7644. },
  7645. "created_at": {
  7646. "$ref": "#/definitions/app/definitions/created_at"
  7647. },
  7648. "git_url": {
  7649. "$ref": "#/definitions/app/definitions/git_url"
  7650. },
  7651. "id": {
  7652. "$ref": "#/definitions/app/definitions/id"
  7653. },
  7654. "joined": {
  7655. "$ref": "#/definitions/organization-app/definitions/joined"
  7656. },
  7657. "locked": {
  7658. "$ref": "#/definitions/organization-app/definitions/locked"
  7659. },
  7660. "maintenance": {
  7661. "$ref": "#/definitions/app/definitions/maintenance"
  7662. },
  7663. "name": {
  7664. "$ref": "#/definitions/app/definitions/name"
  7665. },
  7666. "organization": {
  7667. "description": "organization that owns this app",
  7668. "properties": {
  7669. "name": {
  7670. "$ref": "#/definitions/organization/definitions/name"
  7671. }
  7672. },
  7673. "type": [
  7674. "null",
  7675. "object"
  7676. ]
  7677. },
  7678. "owner": {
  7679. "description": "identity of app owner",
  7680. "properties": {
  7681. "email": {
  7682. "$ref": "#/definitions/account/definitions/email"
  7683. },
  7684. "id": {
  7685. "$ref": "#/definitions/account/definitions/id"
  7686. }
  7687. },
  7688. "type": [
  7689. "null",
  7690. "object"
  7691. ]
  7692. },
  7693. "region": {
  7694. "description": "identity of app region",
  7695. "properties": {
  7696. "id": {
  7697. "$ref": "#/definitions/region/definitions/id"
  7698. },
  7699. "name": {
  7700. "$ref": "#/definitions/region/definitions/name"
  7701. }
  7702. },
  7703. "type": [
  7704. "object"
  7705. ]
  7706. },
  7707. "released_at": {
  7708. "$ref": "#/definitions/app/definitions/released_at"
  7709. },
  7710. "repo_size": {
  7711. "$ref": "#/definitions/app/definitions/repo_size"
  7712. },
  7713. "slug_size": {
  7714. "$ref": "#/definitions/app/definitions/slug_size"
  7715. },
  7716. "space": {
  7717. "description": "identity of space",
  7718. "properties": {
  7719. "id": {
  7720. "$ref": "#/definitions/space/definitions/id"
  7721. },
  7722. "name": {
  7723. "$ref": "#/definitions/space/definitions/name"
  7724. }
  7725. },
  7726. "type": [
  7727. "null",
  7728. "object"
  7729. ]
  7730. },
  7731. "stack": {
  7732. "description": "identity of app stack",
  7733. "properties": {
  7734. "id": {
  7735. "$ref": "#/definitions/stack/definitions/id"
  7736. },
  7737. "name": {
  7738. "$ref": "#/definitions/stack/definitions/name"
  7739. }
  7740. },
  7741. "type": [
  7742. "object"
  7743. ]
  7744. },
  7745. "updated_at": {
  7746. "$ref": "#/definitions/app/definitions/updated_at"
  7747. },
  7748. "web_url": {
  7749. "$ref": "#/definitions/app/definitions/web_url"
  7750. }
  7751. }
  7752. },
  7753. "organization-feature": {
  7754. "description": "Deprecated: An organization feature represents a feature enabled on an organization account.",
  7755. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  7756. "stability": "prototype",
  7757. "deprecated_at": "2017-04-10",
  7758. "strictProperties": true,
  7759. "title": "Heroku Platform API - Organization Feature",
  7760. "type": [
  7761. "object"
  7762. ],
  7763. "definitions": {
  7764. "created_at": {
  7765. "description": "when organization feature was created",
  7766. "example": "2012-01-01T12:00:00Z",
  7767. "format": "date-time",
  7768. "readOnly": true,
  7769. "type": [
  7770. "string"
  7771. ]
  7772. },
  7773. "description": {
  7774. "description": "description of organization feature",
  7775. "example": "Causes account to example.",
  7776. "readOnly": true,
  7777. "type": [
  7778. "string"
  7779. ]
  7780. },
  7781. "doc_url": {
  7782. "description": "documentation URL of organization feature",
  7783. "example": "http://devcenter.heroku.com/articles/example",
  7784. "readOnly": true,
  7785. "type": [
  7786. "string"
  7787. ]
  7788. },
  7789. "enabled": {
  7790. "description": "whether or not organization feature has been enabled",
  7791. "example": true,
  7792. "readOnly": false,
  7793. "type": [
  7794. "boolean"
  7795. ]
  7796. },
  7797. "id": {
  7798. "description": "unique identifier of organization feature",
  7799. "example": "01234567-89ab-cdef-0123-456789abcdef",
  7800. "format": "uuid",
  7801. "readOnly": true,
  7802. "type": [
  7803. "string"
  7804. ]
  7805. },
  7806. "identity": {
  7807. "anyOf": [
  7808. {
  7809. "$ref": "#/definitions/organization-feature/definitions/id"
  7810. },
  7811. {
  7812. "$ref": "#/definitions/organization-feature/definitions/name"
  7813. }
  7814. ]
  7815. },
  7816. "name": {
  7817. "description": "unique name of organization feature",
  7818. "example": "name",
  7819. "readOnly": true,
  7820. "type": [
  7821. "string"
  7822. ]
  7823. },
  7824. "state": {
  7825. "description": "state of organization feature",
  7826. "example": "public",
  7827. "readOnly": true,
  7828. "type": [
  7829. "string"
  7830. ]
  7831. },
  7832. "updated_at": {
  7833. "description": "when organization feature was updated",
  7834. "example": "2012-01-01T12:00:00Z",
  7835. "format": "date-time",
  7836. "readOnly": true,
  7837. "type": [
  7838. "string"
  7839. ]
  7840. },
  7841. "display_name": {
  7842. "description": "user readable feature name",
  7843. "example": "My Feature",
  7844. "readOnly": true,
  7845. "type": [
  7846. "string"
  7847. ]
  7848. },
  7849. "feedback_email": {
  7850. "description": "e-mail to send feedback about the feature",
  7851. "example": "feedback@heroku.com",
  7852. "readOnly": true,
  7853. "type": [
  7854. "string"
  7855. ]
  7856. }
  7857. },
  7858. "links": [
  7859. {
  7860. "description": "Info for an existing organization feature.",
  7861. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/features/{(%23%2Fdefinitions%2Forganization-feature%2Fdefinitions%2Fidentity)}",
  7862. "method": "GET",
  7863. "rel": "self",
  7864. "targetSchema": {
  7865. "$ref": "#/definitions/organization-feature"
  7866. },
  7867. "title": "Info"
  7868. },
  7869. {
  7870. "description": "List existing organization features.",
  7871. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/features",
  7872. "method": "GET",
  7873. "rel": "instances",
  7874. "targetSchema": {
  7875. "items": {
  7876. "$ref": "#/definitions/organization-feature"
  7877. },
  7878. "type": [
  7879. "array"
  7880. ]
  7881. },
  7882. "title": "List"
  7883. },
  7884. {
  7885. "description": "Update an existing organization feature.",
  7886. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/features/{(%23%2Fdefinitions%2Forganization-feature%2Fdefinitions%2Fidentity)}",
  7887. "method": "PATCH",
  7888. "rel": "update",
  7889. "schema": {
  7890. "properties": {
  7891. "enabled": {
  7892. "$ref": "#/definitions/organization-feature/definitions/enabled"
  7893. }
  7894. },
  7895. "required": [
  7896. "enabled"
  7897. ],
  7898. "type": [
  7899. "object"
  7900. ]
  7901. },
  7902. "targetSchema": {
  7903. "$ref": "#/definitions/organization-feature"
  7904. },
  7905. "title": "Update"
  7906. }
  7907. ],
  7908. "properties": {
  7909. "created_at": {
  7910. "$ref": "#/definitions/organization-feature/definitions/created_at"
  7911. },
  7912. "description": {
  7913. "$ref": "#/definitions/organization-feature/definitions/description"
  7914. },
  7915. "doc_url": {
  7916. "$ref": "#/definitions/organization-feature/definitions/doc_url"
  7917. },
  7918. "enabled": {
  7919. "$ref": "#/definitions/organization-feature/definitions/enabled"
  7920. },
  7921. "id": {
  7922. "$ref": "#/definitions/organization-feature/definitions/id"
  7923. },
  7924. "name": {
  7925. "$ref": "#/definitions/organization-feature/definitions/name"
  7926. },
  7927. "state": {
  7928. "$ref": "#/definitions/organization-feature/definitions/state"
  7929. },
  7930. "updated_at": {
  7931. "$ref": "#/definitions/organization-feature/definitions/updated_at"
  7932. },
  7933. "display_name": {
  7934. "$ref": "#/definitions/organization-feature/definitions/display_name"
  7935. },
  7936. "feedback_email": {
  7937. "$ref": "#/definitions/organization-feature/definitions/feedback_email"
  7938. }
  7939. }
  7940. },
  7941. "organization-invitation": {
  7942. "description": "Deprecated: An organization invitation represents an invite to an organization.",
  7943. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  7944. "stability": "prototype",
  7945. "deprecated_at": "2017-04-10",
  7946. "strictProperties": true,
  7947. "title": "Heroku Platform API - Organization Invitation",
  7948. "type": [
  7949. "object"
  7950. ],
  7951. "definitions": {
  7952. "created_at": {
  7953. "description": "when invitation was created",
  7954. "example": "2012-01-01T12:00:00Z",
  7955. "format": "date-time",
  7956. "readOnly": true,
  7957. "type": [
  7958. "string"
  7959. ]
  7960. },
  7961. "identity": {
  7962. "anyOf": [
  7963. {
  7964. "$ref": "#/definitions/organization-invitation/definitions/id"
  7965. }
  7966. ]
  7967. },
  7968. "id": {
  7969. "description": "Unique identifier of an invitation",
  7970. "example": "01234567-89ab-cdef-0123-456789abcdef",
  7971. "format": "uuid",
  7972. "readOnly": true,
  7973. "type": [
  7974. "string"
  7975. ]
  7976. },
  7977. "token": {
  7978. "description": "Special token for invitation",
  7979. "example": "614ae25aa2d4802096cd7c18625b526c",
  7980. "readOnly": true,
  7981. "type": [
  7982. "string"
  7983. ]
  7984. },
  7985. "updated_at": {
  7986. "description": "when invitation was updated",
  7987. "example": "2012-01-01T12:00:00Z",
  7988. "format": "date-time",
  7989. "readOnly": true,
  7990. "type": [
  7991. "string"
  7992. ]
  7993. }
  7994. },
  7995. "links": [
  7996. {
  7997. "description": "Get a list of an organization's Identity Providers",
  7998. "title": "List",
  7999. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fname)}/invitations",
  8000. "method": "GET",
  8001. "rel": "instances",
  8002. "targetSchema": {
  8003. "items": {
  8004. "$ref": "#/definitions/organization-invitation"
  8005. },
  8006. "type": [
  8007. "array"
  8008. ]
  8009. }
  8010. },
  8011. {
  8012. "description": "Create Organization Invitation",
  8013. "title": "Create",
  8014. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/invitations",
  8015. "method": "PUT",
  8016. "rel": "update",
  8017. "schema": {
  8018. "properties": {
  8019. "email": {
  8020. "$ref": "#/definitions/account/definitions/email"
  8021. },
  8022. "role": {
  8023. "$ref": "#/definitions/organization/definitions/role"
  8024. }
  8025. },
  8026. "required": [
  8027. "email",
  8028. "role"
  8029. ],
  8030. "type": [
  8031. "object"
  8032. ]
  8033. }
  8034. },
  8035. {
  8036. "description": "Revoke an organization invitation.",
  8037. "title": "Revoke",
  8038. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/invitations/{(%23%2Fdefinitions%2Forganization-invitation%2Fdefinitions%2Fidentity)}",
  8039. "method": "DELETE",
  8040. "rel": "self"
  8041. },
  8042. {
  8043. "description": "Get an invitation by its token",
  8044. "title": "Get",
  8045. "href": "/organizations/invitations/{(%23%2Fdefinitions%2Forganization-invitation%2Fdefinitions%2Ftoken)}",
  8046. "method": "GET",
  8047. "rel": "instances",
  8048. "targetSchema": {
  8049. "$ref": "#/definitions/organization-invitation"
  8050. }
  8051. },
  8052. {
  8053. "description": "Accept Organization Invitation",
  8054. "title": "Accept",
  8055. "href": "/organizations/invitations/{(%23%2Fdefinitions%2Forganization-invitation%2Fdefinitions%2Ftoken)}/accept",
  8056. "method": "POST",
  8057. "rel": "create",
  8058. "targetSchema": {
  8059. "$ref": "#/definitions/organization-member"
  8060. }
  8061. }
  8062. ],
  8063. "properties": {
  8064. "created_at": {
  8065. "$ref": "#/definitions/organization-invitation/definitions/created_at"
  8066. },
  8067. "id": {
  8068. "$ref": "#/definitions/organization-invitation/definitions/id"
  8069. },
  8070. "invited_by": {
  8071. "properties": {
  8072. "email": {
  8073. "$ref": "#/definitions/account/definitions/email"
  8074. },
  8075. "id": {
  8076. "$ref": "#/definitions/account/definitions/id"
  8077. },
  8078. "name": {
  8079. "$ref": "#/definitions/account/definitions/name"
  8080. }
  8081. },
  8082. "strictProperties": true,
  8083. "type": [
  8084. "object"
  8085. ]
  8086. },
  8087. "organization": {
  8088. "properties": {
  8089. "id": {
  8090. "$ref": "#/definitions/organization/definitions/id"
  8091. },
  8092. "name": {
  8093. "$ref": "#/definitions/organization/definitions/name"
  8094. }
  8095. },
  8096. "strictProperties": true,
  8097. "type": [
  8098. "object"
  8099. ]
  8100. },
  8101. "role": {
  8102. "$ref": "#/definitions/organization/definitions/role"
  8103. },
  8104. "updated_at": {
  8105. "$ref": "#/definitions/organization-invitation/definitions/updated_at"
  8106. },
  8107. "user": {
  8108. "properties": {
  8109. "email": {
  8110. "$ref": "#/definitions/account/definitions/email"
  8111. },
  8112. "id": {
  8113. "$ref": "#/definitions/account/definitions/id"
  8114. },
  8115. "name": {
  8116. "$ref": "#/definitions/account/definitions/name"
  8117. }
  8118. },
  8119. "strictProperties": true,
  8120. "type": [
  8121. "object"
  8122. ]
  8123. }
  8124. }
  8125. },
  8126. "organization-invoice": {
  8127. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  8128. "description": "Deprecated: An organization invoice is an itemized bill of goods for an organization which includes pricing and charges.",
  8129. "stability": "prototype",
  8130. "deprecated_at": "2017-04-10",
  8131. "strictProperties": true,
  8132. "title": "Heroku Platform API - Organization Invoice",
  8133. "type": [
  8134. "object"
  8135. ],
  8136. "definitions": {
  8137. "addons_total": {
  8138. "description": "total add-ons charges in on this invoice",
  8139. "example": 25000,
  8140. "readOnly": true,
  8141. "type": [
  8142. "integer"
  8143. ]
  8144. },
  8145. "database_total": {
  8146. "description": "total database charges on this invoice",
  8147. "example": 25000,
  8148. "readOnly": true,
  8149. "type": [
  8150. "integer"
  8151. ]
  8152. },
  8153. "charges_total": {
  8154. "description": "total charges on this invoice",
  8155. "example": 0,
  8156. "readOnly": true,
  8157. "type": [
  8158. "integer"
  8159. ]
  8160. },
  8161. "created_at": {
  8162. "description": "when invoice was created",
  8163. "example": "2012-01-01T12:00:00Z",
  8164. "format": "date-time",
  8165. "readOnly": true,
  8166. "type": [
  8167. "string"
  8168. ]
  8169. },
  8170. "credits_total": {
  8171. "description": "total credits on this invoice",
  8172. "example": 100000,
  8173. "readOnly": true,
  8174. "type": [
  8175. "integer"
  8176. ]
  8177. },
  8178. "dyno_units": {
  8179. "description": "The total amount of dyno units consumed across dyno types.",
  8180. "example": 1.92,
  8181. "readOnly": true,
  8182. "type": [
  8183. "number"
  8184. ]
  8185. },
  8186. "id": {
  8187. "description": "unique identifier of this invoice",
  8188. "example": "01234567-89ab-cdef-0123-456789abcdef",
  8189. "format": "uuid",
  8190. "readOnly": true,
  8191. "type": [
  8192. "string"
  8193. ]
  8194. },
  8195. "identity": {
  8196. "anyOf": [
  8197. {
  8198. "$ref": "#/definitions/organization-invoice/definitions/number"
  8199. }
  8200. ]
  8201. },
  8202. "number": {
  8203. "description": "human readable invoice number",
  8204. "example": 9403943,
  8205. "readOnly": true,
  8206. "type": [
  8207. "integer"
  8208. ]
  8209. },
  8210. "payment_status": {
  8211. "description": "Status of the invoice payment.",
  8212. "example": "Paid",
  8213. "readOnly": true,
  8214. "type": [
  8215. "string"
  8216. ]
  8217. },
  8218. "platform_total": {
  8219. "description": "total platform charges on this invoice",
  8220. "example": 50000,
  8221. "readOnly": true,
  8222. "type": [
  8223. "integer"
  8224. ]
  8225. },
  8226. "period_end": {
  8227. "description": "the ending date that the invoice covers",
  8228. "example": "01/31/2014",
  8229. "readOnly": true,
  8230. "type": [
  8231. "string"
  8232. ]
  8233. },
  8234. "period_start": {
  8235. "description": "the starting date that this invoice covers",
  8236. "example": "01/01/2014",
  8237. "readOnly": true,
  8238. "type": [
  8239. "string"
  8240. ]
  8241. },
  8242. "state": {
  8243. "description": "payment status for this invoice (pending, successful, failed)",
  8244. "example": 1,
  8245. "readOnly": true,
  8246. "type": [
  8247. "integer"
  8248. ]
  8249. },
  8250. "total": {
  8251. "description": "combined total of charges and credits on this invoice",
  8252. "example": 100000,
  8253. "readOnly": true,
  8254. "type": [
  8255. "integer"
  8256. ]
  8257. },
  8258. "updated_at": {
  8259. "description": "when invoice was updated",
  8260. "example": "2012-01-01T12:00:00Z",
  8261. "format": "date-time",
  8262. "readOnly": true,
  8263. "type": [
  8264. "string"
  8265. ]
  8266. },
  8267. "weighted_dyno_hours": {
  8268. "description": "The total amount of hours consumed across dyno types.",
  8269. "example": 1488,
  8270. "readOnly": true,
  8271. "type": [
  8272. "number"
  8273. ]
  8274. }
  8275. },
  8276. "links": [
  8277. {
  8278. "description": "Info for existing invoice.",
  8279. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/invoices/{(%23%2Fdefinitions%2Forganization-invoice%2Fdefinitions%2Fidentity)}",
  8280. "method": "GET",
  8281. "rel": "self",
  8282. "targetSchema": {
  8283. "$ref": "#/definitions/organization-invoice"
  8284. },
  8285. "title": "Info"
  8286. },
  8287. {
  8288. "description": "List existing invoices.",
  8289. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/invoices",
  8290. "method": "GET",
  8291. "rel": "instances",
  8292. "targetSchema": {
  8293. "items": {
  8294. "$ref": "#/definitions/organization-invoice"
  8295. },
  8296. "type": [
  8297. "array"
  8298. ]
  8299. },
  8300. "title": "List"
  8301. }
  8302. ],
  8303. "properties": {
  8304. "addons_total": {
  8305. "$ref": "#/definitions/organization-invoice/definitions/addons_total"
  8306. },
  8307. "database_total": {
  8308. "$ref": "#/definitions/organization-invoice/definitions/database_total"
  8309. },
  8310. "charges_total": {
  8311. "$ref": "#/definitions/organization-invoice/definitions/charges_total"
  8312. },
  8313. "created_at": {
  8314. "$ref": "#/definitions/organization-invoice/definitions/created_at"
  8315. },
  8316. "credits_total": {
  8317. "$ref": "#/definitions/organization-invoice/definitions/credits_total"
  8318. },
  8319. "dyno_units": {
  8320. "$ref": "#/definitions/organization-invoice/definitions/dyno_units"
  8321. },
  8322. "id": {
  8323. "$ref": "#/definitions/organization-invoice/definitions/id"
  8324. },
  8325. "number": {
  8326. "$ref": "#/definitions/organization-invoice/definitions/number"
  8327. },
  8328. "payment_status": {
  8329. "$ref": "#/definitions/organization-invoice/definitions/payment_status"
  8330. },
  8331. "period_end": {
  8332. "$ref": "#/definitions/organization-invoice/definitions/period_end"
  8333. },
  8334. "period_start": {
  8335. "$ref": "#/definitions/organization-invoice/definitions/period_start"
  8336. },
  8337. "platform_total": {
  8338. "$ref": "#/definitions/organization-invoice/definitions/platform_total"
  8339. },
  8340. "state": {
  8341. "$ref": "#/definitions/organization-invoice/definitions/state"
  8342. },
  8343. "total": {
  8344. "$ref": "#/definitions/organization-invoice/definitions/total"
  8345. },
  8346. "updated_at": {
  8347. "$ref": "#/definitions/organization-invoice/definitions/updated_at"
  8348. },
  8349. "weighted_dyno_hours": {
  8350. "$ref": "#/definitions/organization-invoice/definitions/weighted_dyno_hours"
  8351. }
  8352. }
  8353. },
  8354. "organization-member": {
  8355. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  8356. "description": "Deprecated: An organization member is an individual with access to an organization.",
  8357. "stability": "prototype",
  8358. "deprecated_at": "2017-04-10",
  8359. "additionalProperties": false,
  8360. "required": [
  8361. "created_at",
  8362. "email",
  8363. "federated",
  8364. "updated_at"
  8365. ],
  8366. "title": "Heroku Platform API - Organization Member",
  8367. "type": [
  8368. "object"
  8369. ],
  8370. "definitions": {
  8371. "created_at": {
  8372. "description": "when the membership record was created",
  8373. "example": "2012-01-01T12:00:00Z",
  8374. "format": "date-time",
  8375. "readOnly": true,
  8376. "type": [
  8377. "string"
  8378. ]
  8379. },
  8380. "email": {
  8381. "description": "email address of the organization member",
  8382. "example": "someone@example.org",
  8383. "readOnly": true,
  8384. "type": [
  8385. "string"
  8386. ]
  8387. },
  8388. "federated": {
  8389. "description": "whether the user is federated and belongs to an Identity Provider",
  8390. "example": false,
  8391. "readOnly": true,
  8392. "type": [
  8393. "boolean"
  8394. ]
  8395. },
  8396. "id": {
  8397. "description": "unique identifier of organization member",
  8398. "example": "01234567-89ab-cdef-0123-456789abcdef",
  8399. "format": "uuid",
  8400. "readOnly": true,
  8401. "type": [
  8402. "string"
  8403. ]
  8404. },
  8405. "identity": {
  8406. "anyOf": [
  8407. {
  8408. "$ref": "#/definitions/organization-member/definitions/email"
  8409. },
  8410. {
  8411. "$ref": "#/definitions/organization-member/definitions/id"
  8412. }
  8413. ]
  8414. },
  8415. "name": {
  8416. "description": "full name of the organization member",
  8417. "example": "Tina Edmonds",
  8418. "readOnly": true,
  8419. "type": [
  8420. "string",
  8421. "null"
  8422. ]
  8423. },
  8424. "two_factor_authentication": {
  8425. "description": "whether the Enterprise organization member has two factor authentication enabled",
  8426. "example": true,
  8427. "readOnly": true,
  8428. "type": [
  8429. "boolean"
  8430. ]
  8431. },
  8432. "updated_at": {
  8433. "description": "when the membership record was updated",
  8434. "example": "2012-01-01T12:00:00Z",
  8435. "format": "date-time",
  8436. "readOnly": true,
  8437. "type": [
  8438. "string"
  8439. ]
  8440. }
  8441. },
  8442. "links": [
  8443. {
  8444. "description": "Create a new organization member, or update their role.",
  8445. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/members",
  8446. "method": "PUT",
  8447. "rel": "create",
  8448. "schema": {
  8449. "properties": {
  8450. "email": {
  8451. "$ref": "#/definitions/organization-member/definitions/email"
  8452. },
  8453. "federated": {
  8454. "$ref": "#/definitions/organization-member/definitions/federated"
  8455. },
  8456. "role": {
  8457. "$ref": "#/definitions/organization/definitions/role"
  8458. }
  8459. },
  8460. "required": [
  8461. "email",
  8462. "role"
  8463. ],
  8464. "type": [
  8465. "object"
  8466. ]
  8467. },
  8468. "targetSchema": {
  8469. "$ref": "#/definitions/organization-member"
  8470. },
  8471. "title": "Create or Update"
  8472. },
  8473. {
  8474. "description": "Create a new organization member.",
  8475. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/members",
  8476. "method": "POST",
  8477. "rel": "create",
  8478. "schema": {
  8479. "properties": {
  8480. "email": {
  8481. "$ref": "#/definitions/organization-member/definitions/email"
  8482. },
  8483. "federated": {
  8484. "$ref": "#/definitions/organization-member/definitions/federated"
  8485. },
  8486. "role": {
  8487. "$ref": "#/definitions/organization/definitions/role"
  8488. }
  8489. },
  8490. "required": [
  8491. "email",
  8492. "role"
  8493. ],
  8494. "type": [
  8495. "object"
  8496. ]
  8497. },
  8498. "targetSchema": {
  8499. "$ref": "#/definitions/organization-member"
  8500. },
  8501. "title": "Create"
  8502. },
  8503. {
  8504. "description": "Update an organization member.",
  8505. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/members",
  8506. "method": "PATCH",
  8507. "rel": "update",
  8508. "schema": {
  8509. "properties": {
  8510. "email": {
  8511. "$ref": "#/definitions/organization-member/definitions/email"
  8512. },
  8513. "federated": {
  8514. "$ref": "#/definitions/organization-member/definitions/federated"
  8515. },
  8516. "role": {
  8517. "$ref": "#/definitions/organization/definitions/role"
  8518. }
  8519. },
  8520. "required": [
  8521. "email",
  8522. "role"
  8523. ],
  8524. "type": [
  8525. "object"
  8526. ]
  8527. },
  8528. "targetSchema": {
  8529. "$ref": "#/definitions/organization-member"
  8530. },
  8531. "title": "update"
  8532. },
  8533. {
  8534. "description": "Remove a member from the organization.",
  8535. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/members/{(%23%2Fdefinitions%2Forganization-member%2Fdefinitions%2Fidentity)}",
  8536. "method": "DELETE",
  8537. "rel": "destroy",
  8538. "targetSchema": {
  8539. "$ref": "#/definitions/organization-member"
  8540. },
  8541. "title": "Delete"
  8542. },
  8543. {
  8544. "description": "List members of the organization.",
  8545. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/members",
  8546. "method": "GET",
  8547. "ranges": [
  8548. "email"
  8549. ],
  8550. "rel": "instances",
  8551. "targetSchema": {
  8552. "items": {
  8553. "$ref": "#/definitions/organization-member"
  8554. },
  8555. "type": [
  8556. "array"
  8557. ]
  8558. },
  8559. "title": "List"
  8560. },
  8561. {
  8562. "description": "List the apps of a member.",
  8563. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/members/{(%23%2Fdefinitions%2Forganization-member%2Fdefinitions%2Fidentity)}/apps",
  8564. "method": "GET",
  8565. "rel": "instances",
  8566. "targetSchema": {
  8567. "items": {
  8568. "$ref": "#/definitions/organization-app"
  8569. },
  8570. "type": [
  8571. "array"
  8572. ]
  8573. },
  8574. "title": "App List"
  8575. }
  8576. ],
  8577. "properties": {
  8578. "created_at": {
  8579. "$ref": "#/definitions/organization-member/definitions/created_at"
  8580. },
  8581. "email": {
  8582. "$ref": "#/definitions/organization-member/definitions/email"
  8583. },
  8584. "federated": {
  8585. "$ref": "#/definitions/organization-member/definitions/federated"
  8586. },
  8587. "id": {
  8588. "$ref": "#/definitions/organization-member/definitions/id"
  8589. },
  8590. "role": {
  8591. "$ref": "#/definitions/organization/definitions/role"
  8592. },
  8593. "two_factor_authentication": {
  8594. "$ref": "#/definitions/organization-member/definitions/two_factor_authentication"
  8595. },
  8596. "updated_at": {
  8597. "$ref": "#/definitions/organization-member/definitions/updated_at"
  8598. },
  8599. "user": {
  8600. "description": "user information for the membership",
  8601. "properties": {
  8602. "email": {
  8603. "$ref": "#/definitions/account/definitions/email"
  8604. },
  8605. "id": {
  8606. "$ref": "#/definitions/account/definitions/id"
  8607. },
  8608. "name": {
  8609. "$ref": "#/definitions/account/definitions/name"
  8610. }
  8611. },
  8612. "strictProperties": true,
  8613. "type": [
  8614. "object"
  8615. ]
  8616. }
  8617. }
  8618. },
  8619. "organization-preferences": {
  8620. "description": "Deprecated: Tracks an organization's preferences",
  8621. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  8622. "stability": "prototype",
  8623. "deprecated_at": "2017-04-10",
  8624. "strictProperties": true,
  8625. "title": "Heroku Platform API - Organization Preferences",
  8626. "type": [
  8627. "object"
  8628. ],
  8629. "definitions": {
  8630. "default-permission": {
  8631. "description": "The default permission used when adding new members to the organization",
  8632. "example": "member",
  8633. "readOnly": false,
  8634. "enum": [
  8635. "admin",
  8636. "member",
  8637. "viewer",
  8638. null
  8639. ],
  8640. "type": [
  8641. "null",
  8642. "string"
  8643. ]
  8644. },
  8645. "identity": {
  8646. "$ref": "#/definitions/organization/definitions/identity"
  8647. },
  8648. "whitelisting-enabled": {
  8649. "description": "Whether whitelisting rules should be applied to add-on installations",
  8650. "example": true,
  8651. "readOnly": false,
  8652. "type": [
  8653. "boolean",
  8654. "null"
  8655. ]
  8656. }
  8657. },
  8658. "links": [
  8659. {
  8660. "description": "Retrieve Organization Preferences",
  8661. "href": "/organizations/{(%23%2Fdefinitions%2Forganization-preferences%2Fdefinitions%2Fidentity)}/preferences",
  8662. "method": "GET",
  8663. "rel": "self",
  8664. "targetSchema": {
  8665. "$ref": "#/definitions/organization-preferences"
  8666. },
  8667. "title": "List"
  8668. },
  8669. {
  8670. "description": "Update Organization Preferences",
  8671. "href": "/organizations/{(%23%2Fdefinitions%2Forganization-preferences%2Fdefinitions%2Fidentity)}/preferences",
  8672. "method": "PATCH",
  8673. "rel": "update",
  8674. "schema": {
  8675. "type": [
  8676. "object"
  8677. ],
  8678. "properties": {
  8679. "whitelisting-enabled": {
  8680. "$ref": "#/definitions/organization-preferences/definitions/whitelisting-enabled"
  8681. }
  8682. }
  8683. },
  8684. "targetSchema": {
  8685. "$ref": "#/definitions/organization-preferences"
  8686. },
  8687. "title": "Update"
  8688. }
  8689. ],
  8690. "properties": {
  8691. "default-permission": {
  8692. "$ref": "#/definitions/organization-preferences/definitions/default-permission"
  8693. },
  8694. "whitelisting-enabled": {
  8695. "$ref": "#/definitions/organization-preferences/definitions/whitelisting-enabled"
  8696. }
  8697. }
  8698. },
  8699. "organization": {
  8700. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  8701. "description": "Deprecated: Organizations allow you to manage access to a shared group of applications across your development team.",
  8702. "stability": "prototype",
  8703. "deprecated_at": "2017-04-10",
  8704. "strictProperties": true,
  8705. "title": "Heroku Platform API - Organization",
  8706. "type": [
  8707. "object"
  8708. ],
  8709. "definitions": {
  8710. "created_at": {
  8711. "description": "when the organization was created",
  8712. "example": "2012-01-01T12:00:00Z",
  8713. "format": "date-time",
  8714. "readOnly": true,
  8715. "type": [
  8716. "string"
  8717. ]
  8718. },
  8719. "credit_card_collections": {
  8720. "description": "whether charges incurred by the org are paid by credit card.",
  8721. "example": true,
  8722. "readOnly": true,
  8723. "type": [
  8724. "boolean"
  8725. ]
  8726. },
  8727. "default": {
  8728. "description": "whether to use this organization when none is specified",
  8729. "example": true,
  8730. "readOnly": false,
  8731. "type": [
  8732. "boolean"
  8733. ]
  8734. },
  8735. "id": {
  8736. "description": "unique identifier of organization",
  8737. "example": "01234567-89ab-cdef-0123-456789abcdef",
  8738. "format": "uuid",
  8739. "readOnly": true,
  8740. "type": [
  8741. "string"
  8742. ]
  8743. },
  8744. "identity": {
  8745. "anyOf": [
  8746. {
  8747. "$ref": "#/definitions/organization/definitions/name"
  8748. },
  8749. {
  8750. "$ref": "#/definitions/organization/definitions/id"
  8751. }
  8752. ]
  8753. },
  8754. "address_1": {
  8755. "type": [
  8756. "string"
  8757. ],
  8758. "description": "street address line 1",
  8759. "example": "40 Hickory Lane"
  8760. },
  8761. "address_2": {
  8762. "type": [
  8763. "string"
  8764. ],
  8765. "description": "street address line 2",
  8766. "example": "Suite 103"
  8767. },
  8768. "card_number": {
  8769. "type": [
  8770. "string"
  8771. ],
  8772. "description": "encrypted card number of payment method",
  8773. "example": "encrypted-card-number"
  8774. },
  8775. "city": {
  8776. "type": [
  8777. "string"
  8778. ],
  8779. "description": "city",
  8780. "example": "San Francisco"
  8781. },
  8782. "country": {
  8783. "type": [
  8784. "string"
  8785. ],
  8786. "description": "country",
  8787. "example": "US"
  8788. },
  8789. "cvv": {
  8790. "type": [
  8791. "string"
  8792. ],
  8793. "description": "card verification value",
  8794. "example": "123"
  8795. },
  8796. "expiration_month": {
  8797. "type": [
  8798. "string"
  8799. ],
  8800. "description": "expiration month",
  8801. "example": "11"
  8802. },
  8803. "expiration_year": {
  8804. "type": [
  8805. "string"
  8806. ],
  8807. "description": "expiration year",
  8808. "example": "2014"
  8809. },
  8810. "first_name": {
  8811. "type": [
  8812. "string"
  8813. ],
  8814. "description": "the first name for payment method",
  8815. "example": "Jason"
  8816. },
  8817. "last_name": {
  8818. "type": [
  8819. "string"
  8820. ],
  8821. "description": "the last name for payment method",
  8822. "example": "Walker"
  8823. },
  8824. "other": {
  8825. "type": [
  8826. "string"
  8827. ],
  8828. "description": "metadata",
  8829. "example": "Additional information for payment method"
  8830. },
  8831. "postal_code": {
  8832. "type": [
  8833. "string"
  8834. ],
  8835. "description": "postal code",
  8836. "example": "90210"
  8837. },
  8838. "state": {
  8839. "type": [
  8840. "string"
  8841. ],
  8842. "description": "state",
  8843. "example": "CA"
  8844. },
  8845. "membership_limit": {
  8846. "description": "upper limit of members allowed in an organization.",
  8847. "example": 25,
  8848. "readOnly": true,
  8849. "type": [
  8850. "number",
  8851. "null"
  8852. ]
  8853. },
  8854. "name": {
  8855. "description": "unique name of organization",
  8856. "example": "example",
  8857. "readOnly": true,
  8858. "type": [
  8859. "string"
  8860. ]
  8861. },
  8862. "provisioned_licenses": {
  8863. "description": "whether the org is provisioned licenses by salesforce.",
  8864. "example": true,
  8865. "readOnly": true,
  8866. "type": [
  8867. "boolean"
  8868. ]
  8869. },
  8870. "role": {
  8871. "description": "role in the organization",
  8872. "enum": [
  8873. "admin",
  8874. "collaborator",
  8875. "member",
  8876. "owner",
  8877. null
  8878. ],
  8879. "example": "admin",
  8880. "readOnly": true,
  8881. "type": [
  8882. "null",
  8883. "string"
  8884. ]
  8885. },
  8886. "type": {
  8887. "description": "type of organization.",
  8888. "example": "team",
  8889. "enum": [
  8890. "enterprise",
  8891. "team"
  8892. ],
  8893. "readOnly": true,
  8894. "type": [
  8895. "string"
  8896. ]
  8897. },
  8898. "updated_at": {
  8899. "description": "when the organization was updated",
  8900. "example": "2012-01-01T12:00:00Z",
  8901. "format": "date-time",
  8902. "readOnly": true,
  8903. "type": [
  8904. "string"
  8905. ]
  8906. }
  8907. },
  8908. "links": [
  8909. {
  8910. "description": "List organizations in which you are a member.",
  8911. "href": "/organizations",
  8912. "method": "GET",
  8913. "rel": "instances",
  8914. "targetSchema": {
  8915. "items": {
  8916. "$ref": "#/definitions/organization"
  8917. },
  8918. "type": [
  8919. "array"
  8920. ]
  8921. },
  8922. "title": "List"
  8923. },
  8924. {
  8925. "description": "Info for an organization.",
  8926. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}",
  8927. "method": "GET",
  8928. "rel": "self",
  8929. "title": "Info"
  8930. },
  8931. {
  8932. "description": "Update organization properties.",
  8933. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}",
  8934. "method": "PATCH",
  8935. "rel": "update",
  8936. "schema": {
  8937. "properties": {
  8938. "default": {
  8939. "$ref": "#/definitions/organization/definitions/default"
  8940. },
  8941. "name": {
  8942. "$ref": "#/definitions/organization/definitions/name"
  8943. }
  8944. },
  8945. "type": [
  8946. "object"
  8947. ]
  8948. },
  8949. "targetSchema": {
  8950. "$ref": "#/definitions/organization"
  8951. },
  8952. "title": "Update"
  8953. },
  8954. {
  8955. "description": "Create a new organization.",
  8956. "href": "/organizations",
  8957. "method": "POST",
  8958. "rel": "create",
  8959. "schema": {
  8960. "properties": {
  8961. "name": {
  8962. "$ref": "#/definitions/organization/definitions/name"
  8963. },
  8964. "address_1": {
  8965. "$ref": "#/definitions/organization/definitions/address_1"
  8966. },
  8967. "address_2": {
  8968. "$ref": "#/definitions/organization/definitions/address_2"
  8969. },
  8970. "card_number": {
  8971. "$ref": "#/definitions/organization/definitions/card_number"
  8972. },
  8973. "city": {
  8974. "$ref": "#/definitions/organization/definitions/city"
  8975. },
  8976. "country": {
  8977. "$ref": "#/definitions/organization/definitions/country"
  8978. },
  8979. "cvv": {
  8980. "$ref": "#/definitions/organization/definitions/cvv"
  8981. },
  8982. "expiration_month": {
  8983. "$ref": "#/definitions/organization/definitions/expiration_month"
  8984. },
  8985. "expiration_year": {
  8986. "$ref": "#/definitions/organization/definitions/expiration_year"
  8987. },
  8988. "first_name": {
  8989. "$ref": "#/definitions/organization/definitions/first_name"
  8990. },
  8991. "last_name": {
  8992. "$ref": "#/definitions/organization/definitions/last_name"
  8993. },
  8994. "other": {
  8995. "$ref": "#/definitions/organization/definitions/other"
  8996. },
  8997. "postal_code": {
  8998. "$ref": "#/definitions/organization/definitions/postal_code"
  8999. },
  9000. "state": {
  9001. "$ref": "#/definitions/organization/definitions/state"
  9002. }
  9003. },
  9004. "required": [
  9005. "name"
  9006. ],
  9007. "type": [
  9008. "object"
  9009. ]
  9010. },
  9011. "targetSchema": {
  9012. "$ref": "#/definitions/organization"
  9013. },
  9014. "title": "Create"
  9015. },
  9016. {
  9017. "description": "Delete an existing organization.",
  9018. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}",
  9019. "method": "DELETE",
  9020. "rel": "destroy",
  9021. "targetSchema": {
  9022. "$ref": "#/definitions/organization"
  9023. },
  9024. "title": "Delete"
  9025. }
  9026. ],
  9027. "properties": {
  9028. "id": {
  9029. "$ref": "#/definitions/organization/definitions/id"
  9030. },
  9031. "created_at": {
  9032. "$ref": "#/definitions/organization/definitions/created_at"
  9033. },
  9034. "credit_card_collections": {
  9035. "$ref": "#/definitions/organization/definitions/credit_card_collections"
  9036. },
  9037. "default": {
  9038. "$ref": "#/definitions/organization/definitions/default"
  9039. },
  9040. "membership_limit": {
  9041. "$ref": "#/definitions/organization/definitions/membership_limit"
  9042. },
  9043. "name": {
  9044. "$ref": "#/definitions/organization/definitions/name"
  9045. },
  9046. "provisioned_licenses": {
  9047. "$ref": "#/definitions/organization/definitions/provisioned_licenses"
  9048. },
  9049. "role": {
  9050. "$ref": "#/definitions/organization/definitions/role"
  9051. },
  9052. "type": {
  9053. "$ref": "#/definitions/organization/definitions/type"
  9054. },
  9055. "updated_at": {
  9056. "$ref": "#/definitions/organization/definitions/updated_at"
  9057. }
  9058. }
  9059. },
  9060. "outbound-ruleset": {
  9061. "description": "An outbound-ruleset is a collection of rules that specify what hosts Dynos are allowed to communicate with. ",
  9062. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  9063. "stability": "prototype",
  9064. "strictProperties": true,
  9065. "title": "Heroku Platform API - Outbound Ruleset",
  9066. "type": [
  9067. "object"
  9068. ],
  9069. "definitions": {
  9070. "target": {
  9071. "description": "is the target destination in CIDR notation",
  9072. "example": "1.1.1.1/1",
  9073. "pattern": "^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])(\\/([0-9]|[1-2][0-9]|3[0-2]))$",
  9074. "readOnly": false,
  9075. "type": [
  9076. "string"
  9077. ]
  9078. },
  9079. "created_at": {
  9080. "description": "when outbound-ruleset was created",
  9081. "example": "2012-01-01T12:00:00Z",
  9082. "format": "date-time",
  9083. "readOnly": true,
  9084. "type": [
  9085. "string"
  9086. ]
  9087. },
  9088. "id": {
  9089. "description": "unique identifier of an outbound-ruleset",
  9090. "example": "01234567-89ab-cdef-0123-456789abcdef",
  9091. "format": "uuid",
  9092. "readOnly": true,
  9093. "type": [
  9094. "string"
  9095. ]
  9096. },
  9097. "port": {
  9098. "description": "an endpoint of communication in an operating system.",
  9099. "example": 80,
  9100. "readOnly": false,
  9101. "type": [
  9102. "integer"
  9103. ]
  9104. },
  9105. "protocol": {
  9106. "description": "formal standards and policies comprised of rules, procedures and formats that define communication between two or more devices over a network",
  9107. "example": "tcp",
  9108. "readOnly": false,
  9109. "type": [
  9110. "string"
  9111. ]
  9112. },
  9113. "identity": {
  9114. "anyOf": [
  9115. {
  9116. "$ref": "#/definitions/outbound-ruleset/definitions/id"
  9117. }
  9118. ]
  9119. },
  9120. "rule": {
  9121. "description": "the combination of an IP address in CIDR notation, a from_port, to_port and protocol.",
  9122. "type": [
  9123. "object"
  9124. ],
  9125. "properties": {
  9126. "target": {
  9127. "$ref": "#/definitions/outbound-ruleset/definitions/target"
  9128. },
  9129. "from_port": {
  9130. "$ref": "#/definitions/outbound-ruleset/definitions/port"
  9131. },
  9132. "to_port": {
  9133. "$ref": "#/definitions/outbound-ruleset/definitions/port"
  9134. },
  9135. "protocol": {
  9136. "$ref": "#/definitions/outbound-ruleset/definitions/protocol"
  9137. }
  9138. },
  9139. "required": [
  9140. "target",
  9141. "from_port",
  9142. "to_port",
  9143. "protocol"
  9144. ]
  9145. }
  9146. },
  9147. "links": [
  9148. {
  9149. "description": "Current outbound ruleset for a space",
  9150. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/outbound-ruleset",
  9151. "method": "GET",
  9152. "rel": "self",
  9153. "targetSchema": {
  9154. "$ref": "#/definitions/outbound-ruleset"
  9155. },
  9156. "title": "Info"
  9157. },
  9158. {
  9159. "description": "Info on an existing Outbound Ruleset",
  9160. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/outbound-rulesets/{(%23%2Fdefinitions%2Foutbound-ruleset%2Fdefinitions%2Fidentity)}",
  9161. "method": "GET",
  9162. "rel": "self",
  9163. "targetSchema": {
  9164. "$ref": "#/definitions/outbound-ruleset"
  9165. },
  9166. "title": "Info"
  9167. },
  9168. {
  9169. "description": "List all Outbound Rulesets for a space",
  9170. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/outbound-rulesets",
  9171. "method": "GET",
  9172. "rel": "instances",
  9173. "targetSchema": {
  9174. "items": {
  9175. "$ref": "#/definitions/outbound-ruleset"
  9176. },
  9177. "type": [
  9178. "array"
  9179. ]
  9180. },
  9181. "title": "List"
  9182. },
  9183. {
  9184. "description": "Create a new outbound ruleset",
  9185. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/outbound-ruleset",
  9186. "method": "PUT",
  9187. "rel": "create",
  9188. "schema": {
  9189. "type": [
  9190. "object"
  9191. ],
  9192. "properties": {
  9193. "rules": {
  9194. "type": [
  9195. "array"
  9196. ],
  9197. "items": {
  9198. "$ref": "#/definitions/outbound-ruleset/definitions/rule"
  9199. }
  9200. }
  9201. }
  9202. },
  9203. "title": "Create"
  9204. }
  9205. ],
  9206. "properties": {
  9207. "id": {
  9208. "$ref": "#/definitions/outbound-ruleset/definitions/id"
  9209. },
  9210. "created_at": {
  9211. "$ref": "#/definitions/outbound-ruleset/definitions/created_at"
  9212. },
  9213. "rules": {
  9214. "type": [
  9215. "array"
  9216. ],
  9217. "items": {
  9218. "$ref": "#/definitions/outbound-ruleset/definitions/rule"
  9219. }
  9220. },
  9221. "created_by": {
  9222. "$ref": "#/definitions/account/definitions/email"
  9223. }
  9224. }
  9225. },
  9226. "password-reset": {
  9227. "description": "A password reset represents a in-process password reset attempt.",
  9228. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  9229. "stability": "production",
  9230. "strictProperties": true,
  9231. "title": "Heroku Platform API - PasswordReset",
  9232. "type": [
  9233. "object"
  9234. ],
  9235. "definitions": {
  9236. "created_at": {
  9237. "description": "when password reset was created",
  9238. "example": "2012-01-01T12:00:00Z",
  9239. "format": "date-time",
  9240. "readOnly": true,
  9241. "type": [
  9242. "string"
  9243. ]
  9244. },
  9245. "identity": {
  9246. "anyOf": [
  9247. {
  9248. "$ref": "#/definitions/account/definitions/email"
  9249. }
  9250. ]
  9251. },
  9252. "password_confirmation": {
  9253. "description": "confirmation of the new password",
  9254. "example": "newpassword",
  9255. "readOnly": true,
  9256. "type": [
  9257. "string"
  9258. ]
  9259. },
  9260. "reset_password_token": {
  9261. "description": "unique identifier of a password reset attempt",
  9262. "example": "01234567-89ab-cdef-0123-456789abcdef",
  9263. "format": "uuid",
  9264. "readOnly": true,
  9265. "type": [
  9266. "string"
  9267. ]
  9268. }
  9269. },
  9270. "links": [
  9271. {
  9272. "description": "Reset account's password. This will send a reset password link to the user's email address.",
  9273. "href": "/password-resets",
  9274. "method": "POST",
  9275. "rel": "self",
  9276. "schema": {
  9277. "properties": {
  9278. "email": {
  9279. "$ref": "#/definitions/account/definitions/email"
  9280. }
  9281. },
  9282. "type": [
  9283. "object"
  9284. ]
  9285. },
  9286. "title": "Reset Password"
  9287. },
  9288. {
  9289. "description": "Complete password reset.",
  9290. "href": "/password-resets/{(%23%2Fdefinitions%2Fpassword-reset%2Fdefinitions%2Freset_password_token)}/actions/finalize",
  9291. "method": "POST",
  9292. "rel": "self",
  9293. "schema": {
  9294. "properties": {
  9295. "password": {
  9296. "$ref": "#/definitions/account/definitions/password"
  9297. },
  9298. "password_confirmation": {
  9299. "$ref": "#/definitions/password-reset/definitions/password_confirmation"
  9300. }
  9301. },
  9302. "type": [
  9303. "object"
  9304. ]
  9305. },
  9306. "title": "Complete Reset Password"
  9307. }
  9308. ],
  9309. "properties": {
  9310. "created_at": {
  9311. "$ref": "#/definitions/password-reset/definitions/created_at"
  9312. },
  9313. "user": {
  9314. "properties": {
  9315. "email": {
  9316. "$ref": "#/definitions/account/definitions/email"
  9317. },
  9318. "id": {
  9319. "$ref": "#/definitions/account/definitions/id"
  9320. }
  9321. },
  9322. "strictProperties": true,
  9323. "type": [
  9324. "object"
  9325. ]
  9326. }
  9327. }
  9328. },
  9329. "organization-app-permission": {
  9330. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  9331. "description": "Deprecated: An organization app permission is a behavior that is assigned to a user in an organization app.",
  9332. "stability": "prototype",
  9333. "deprecated_at": "2017-04-10",
  9334. "title": "Heroku Platform API - Organization App Permission",
  9335. "type": [
  9336. "object"
  9337. ],
  9338. "definitions": {
  9339. "identity": {
  9340. "anyOf": [
  9341. {
  9342. "$ref": "#/definitions/organization-app-permission/definitions/name"
  9343. }
  9344. ]
  9345. },
  9346. "name": {
  9347. "description": "The name of the app permission.",
  9348. "example": "view",
  9349. "readOnly": true,
  9350. "type": [
  9351. "string"
  9352. ]
  9353. },
  9354. "description": {
  9355. "description": "A description of what the app permission allows.",
  9356. "example": "Can manage config, deploy, run commands and restart the app.",
  9357. "readOnly": true,
  9358. "type": [
  9359. "string"
  9360. ]
  9361. }
  9362. },
  9363. "links": [
  9364. {
  9365. "description": "Lists permissions available to organizations.",
  9366. "href": "/organizations/permissions",
  9367. "method": "GET",
  9368. "rel": "instances",
  9369. "targetSchema": {
  9370. "items": {
  9371. "$ref": "#/definitions/organization-app-permission"
  9372. },
  9373. "type": [
  9374. "array"
  9375. ]
  9376. },
  9377. "title": "List"
  9378. }
  9379. ],
  9380. "properties": {
  9381. "name": {
  9382. "$ref": "#/definitions/organization-app-permission/definitions/name"
  9383. },
  9384. "description": {
  9385. "$ref": "#/definitions/organization-app-permission/definitions/description"
  9386. }
  9387. }
  9388. },
  9389. "pipeline-coupling": {
  9390. "description": "Information about an app's coupling to a pipeline",
  9391. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  9392. "stability": "prototype",
  9393. "title": "Heroku Platform API - Pipeline Coupling",
  9394. "type": [
  9395. "object"
  9396. ],
  9397. "definitions": {
  9398. "created_at": {
  9399. "description": "when pipeline coupling was created",
  9400. "example": "2012-01-01T12:00:00Z",
  9401. "format": "date-time",
  9402. "readOnly": true,
  9403. "type": [
  9404. "string"
  9405. ]
  9406. },
  9407. "id": {
  9408. "description": "unique identifier of pipeline coupling",
  9409. "example": "01234567-89ab-cdef-0123-456789abcdef",
  9410. "format": "uuid",
  9411. "readOnly": true,
  9412. "type": [
  9413. "string"
  9414. ]
  9415. },
  9416. "identity": {
  9417. "anyOf": [
  9418. {
  9419. "$ref": "#/definitions/pipeline-coupling/definitions/id"
  9420. }
  9421. ]
  9422. },
  9423. "stage": {
  9424. "description": "target pipeline stage",
  9425. "example": "production",
  9426. "enum": [
  9427. "test",
  9428. "review",
  9429. "development",
  9430. "staging",
  9431. "production"
  9432. ],
  9433. "type": [
  9434. "string"
  9435. ]
  9436. },
  9437. "updated_at": {
  9438. "description": "when pipeline coupling was updated",
  9439. "example": "2012-01-01T12:00:00Z",
  9440. "format": "date-time",
  9441. "readOnly": true,
  9442. "type": [
  9443. "string"
  9444. ]
  9445. }
  9446. },
  9447. "links": [
  9448. {
  9449. "description": "List couplings for a pipeline",
  9450. "href": "/pipelines/{(%23%2Fdefinitions%2Fpipeline%2Fdefinitions%2Fid)}/pipeline-couplings",
  9451. "method": "GET",
  9452. "rel": "instances",
  9453. "targetSchema": {
  9454. "items": {
  9455. "$ref": "#/definitions/pipeline-coupling"
  9456. },
  9457. "type": [
  9458. "array"
  9459. ]
  9460. },
  9461. "title": "List"
  9462. },
  9463. {
  9464. "description": "List pipeline couplings.",
  9465. "href": "/pipeline-couplings",
  9466. "method": "GET",
  9467. "rel": "instances",
  9468. "targetSchema": {
  9469. "items": {
  9470. "$ref": "#/definitions/pipeline-coupling"
  9471. },
  9472. "type": [
  9473. "array"
  9474. ]
  9475. },
  9476. "title": "List"
  9477. },
  9478. {
  9479. "description": "Create a new pipeline coupling.",
  9480. "href": "/pipeline-couplings",
  9481. "method": "POST",
  9482. "rel": "create",
  9483. "schema": {
  9484. "properties": {
  9485. "app": {
  9486. "$ref": "#/definitions/app/definitions/identity"
  9487. },
  9488. "pipeline": {
  9489. "$ref": "#/definitions/pipeline/definitions/id"
  9490. },
  9491. "stage": {
  9492. "$ref": "#/definitions/pipeline-coupling/definitions/stage"
  9493. }
  9494. },
  9495. "required": [
  9496. "app",
  9497. "pipeline",
  9498. "stage"
  9499. ],
  9500. "type": [
  9501. "object"
  9502. ]
  9503. },
  9504. "targetSchema": {
  9505. "$ref": "#/definitions/pipeline-coupling"
  9506. },
  9507. "title": "Create"
  9508. },
  9509. {
  9510. "description": "Info for an existing pipeline coupling.",
  9511. "href": "/pipeline-couplings/{(%23%2Fdefinitions%2Fpipeline-coupling%2Fdefinitions%2Fidentity)}",
  9512. "method": "GET",
  9513. "rel": "self",
  9514. "targetSchema": {
  9515. "$ref": "#/definitions/pipeline-coupling"
  9516. },
  9517. "title": "Info"
  9518. },
  9519. {
  9520. "description": "Delete an existing pipeline coupling.",
  9521. "href": "/pipeline-couplings/{(%23%2Fdefinitions%2Fpipeline-coupling%2Fdefinitions%2Fidentity)}",
  9522. "method": "DELETE",
  9523. "rel": "delete",
  9524. "targetSchema": {
  9525. "$ref": "#/definitions/pipeline-coupling"
  9526. },
  9527. "title": "Delete"
  9528. },
  9529. {
  9530. "description": "Update an existing pipeline coupling.",
  9531. "href": "/pipeline-couplings/{(%23%2Fdefinitions%2Fpipeline-coupling%2Fdefinitions%2Fidentity)}",
  9532. "method": "PATCH",
  9533. "rel": "update",
  9534. "schema": {
  9535. "properties": {
  9536. "stage": {
  9537. "$ref": "#/definitions/pipeline-coupling/definitions/stage"
  9538. }
  9539. },
  9540. "type": [
  9541. "object"
  9542. ]
  9543. },
  9544. "targetSchema": {
  9545. "$ref": "#/definitions/pipeline-coupling"
  9546. },
  9547. "title": "Update"
  9548. },
  9549. {
  9550. "description": "Info for an existing pipeline coupling.",
  9551. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/pipeline-couplings",
  9552. "method": "GET",
  9553. "rel": "self",
  9554. "targetSchema": {
  9555. "$ref": "#/definitions/pipeline-coupling"
  9556. },
  9557. "title": "Info"
  9558. }
  9559. ],
  9560. "properties": {
  9561. "app": {
  9562. "description": "app involved in the pipeline coupling",
  9563. "properties": {
  9564. "id": {
  9565. "$ref": "#/definitions/app/definitions/id"
  9566. }
  9567. },
  9568. "type": [
  9569. "object"
  9570. ]
  9571. },
  9572. "created_at": {
  9573. "$ref": "#/definitions/pipeline-coupling/definitions/created_at"
  9574. },
  9575. "id": {
  9576. "$ref": "#/definitions/pipeline-coupling/definitions/id"
  9577. },
  9578. "pipeline": {
  9579. "description": "pipeline involved in the coupling",
  9580. "properties": {
  9581. "id": {
  9582. "$ref": "#/definitions/pipeline/definitions/id"
  9583. }
  9584. },
  9585. "type": [
  9586. "object"
  9587. ]
  9588. },
  9589. "stage": {
  9590. "$ref": "#/definitions/pipeline-coupling/definitions/stage"
  9591. },
  9592. "updated_at": {
  9593. "$ref": "#/definitions/pipeline-coupling/definitions/updated_at"
  9594. }
  9595. }
  9596. },
  9597. "pipeline-promotion-target": {
  9598. "description": "Promotion targets represent an individual app being promoted to",
  9599. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  9600. "stability": "prototype",
  9601. "strictProperties": true,
  9602. "title": "Heroku Platform API - Pipeline Promotion Target",
  9603. "type": [
  9604. "object"
  9605. ],
  9606. "definitions": {
  9607. "error_message": {
  9608. "description": "an error message for why the promotion failed",
  9609. "example": "User does not have access to that app",
  9610. "type": [
  9611. "null",
  9612. "string"
  9613. ]
  9614. },
  9615. "id": {
  9616. "description": "unique identifier of promotion target",
  9617. "example": "01234567-89ab-cdef-0123-456789abcdef",
  9618. "readOnly": true,
  9619. "format": "uuid",
  9620. "type": [
  9621. "string"
  9622. ]
  9623. },
  9624. "identity": {
  9625. "anyOf": [
  9626. {
  9627. "$ref": "#/definitions/pipeline-promotion-target/definitions/id"
  9628. }
  9629. ]
  9630. },
  9631. "status": {
  9632. "description": "status of promotion",
  9633. "example": "pending",
  9634. "readOnly": true,
  9635. "enum": [
  9636. "pending",
  9637. "succeeded",
  9638. "failed"
  9639. ],
  9640. "type": [
  9641. "string"
  9642. ]
  9643. }
  9644. },
  9645. "links": [
  9646. {
  9647. "description": "List promotion targets belonging to an existing promotion.",
  9648. "href": "/pipeline-promotions/{(%23%2Fdefinitions%2Fpipeline-promotion%2Fdefinitions%2Fid)}/promotion-targets",
  9649. "method": "GET",
  9650. "rel": "instances",
  9651. "targetSchema": {
  9652. "items": {
  9653. "$ref": "#/definitions/pipeline-promotion-target"
  9654. },
  9655. "type": [
  9656. "array"
  9657. ]
  9658. },
  9659. "title": "List"
  9660. }
  9661. ],
  9662. "properties": {
  9663. "app": {
  9664. "description": "the app which was promoted to",
  9665. "properties": {
  9666. "id": {
  9667. "$ref": "#/definitions/app/definitions/id"
  9668. }
  9669. },
  9670. "strictProperties": true,
  9671. "type": [
  9672. "object"
  9673. ]
  9674. },
  9675. "error_message": {
  9676. "$ref": "#/definitions/pipeline-promotion-target/definitions/error_message"
  9677. },
  9678. "id": {
  9679. "$ref": "#/definitions/pipeline-promotion-target/definitions/id"
  9680. },
  9681. "pipeline_promotion": {
  9682. "description": "the promotion which the target belongs to",
  9683. "properties": {
  9684. "id": {
  9685. "$ref": "#/definitions/pipeline-promotion/definitions/id"
  9686. }
  9687. },
  9688. "strictProperties": true,
  9689. "type": [
  9690. "object"
  9691. ]
  9692. },
  9693. "release": {
  9694. "description": "the release which was created on the target app",
  9695. "properties": {
  9696. "id": {
  9697. "$ref": "#/definitions/release/definitions/id"
  9698. }
  9699. },
  9700. "type": [
  9701. "object",
  9702. "null"
  9703. ]
  9704. },
  9705. "status": {
  9706. "$ref": "#/definitions/pipeline-promotion-target/definitions/status"
  9707. }
  9708. }
  9709. },
  9710. "pipeline-promotion": {
  9711. "description": "Promotions allow you to move code from an app in a pipeline to all targets",
  9712. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  9713. "stability": "prototype",
  9714. "strictProperties": true,
  9715. "title": "Heroku Platform API - Pipeline Promotion",
  9716. "type": [
  9717. "object"
  9718. ],
  9719. "definitions": {
  9720. "created_at": {
  9721. "description": "when promotion was created",
  9722. "example": "2012-01-01T12:00:00Z",
  9723. "format": "date-time",
  9724. "type": [
  9725. "string"
  9726. ]
  9727. },
  9728. "id": {
  9729. "description": "unique identifier of promotion",
  9730. "example": "01234567-89ab-cdef-0123-456789abcdef",
  9731. "readOnly": true,
  9732. "format": "uuid",
  9733. "type": [
  9734. "string"
  9735. ]
  9736. },
  9737. "identity": {
  9738. "anyOf": [
  9739. {
  9740. "$ref": "#/definitions/pipeline-promotion/definitions/id"
  9741. }
  9742. ]
  9743. },
  9744. "status": {
  9745. "description": "status of promotion",
  9746. "example": "pending",
  9747. "readOnly": true,
  9748. "enum": [
  9749. "pending",
  9750. "completed"
  9751. ],
  9752. "type": [
  9753. "string"
  9754. ]
  9755. },
  9756. "updated_at": {
  9757. "description": "when promotion was updated",
  9758. "example": "2012-01-01T12:00:00Z",
  9759. "format": "date-time",
  9760. "type": [
  9761. "string",
  9762. "null"
  9763. ]
  9764. }
  9765. },
  9766. "links": [
  9767. {
  9768. "description": "Create a new promotion.",
  9769. "href": "/pipeline-promotions",
  9770. "method": "POST",
  9771. "rel": "create",
  9772. "schema": {
  9773. "properties": {
  9774. "pipeline": {
  9775. "description": "pipeline involved in the promotion",
  9776. "properties": {
  9777. "id": {
  9778. "$ref": "#/definitions/pipeline/definitions/id"
  9779. }
  9780. },
  9781. "required": [
  9782. "id"
  9783. ],
  9784. "type": [
  9785. "object"
  9786. ]
  9787. },
  9788. "source": {
  9789. "description": "the app being promoted from",
  9790. "type": [
  9791. "object"
  9792. ],
  9793. "properties": {
  9794. "app": {
  9795. "description": "the app which was promoted from",
  9796. "properties": {
  9797. "id": {
  9798. "$ref": "#/definitions/app/definitions/id"
  9799. }
  9800. },
  9801. "strictProperties": true,
  9802. "type": [
  9803. "object"
  9804. ]
  9805. }
  9806. }
  9807. },
  9808. "targets": {
  9809. "type": [
  9810. "array"
  9811. ],
  9812. "items": {
  9813. "type": [
  9814. "object"
  9815. ],
  9816. "properties": {
  9817. "app": {
  9818. "description": "the app is being promoted to",
  9819. "properties": {
  9820. "id": {
  9821. "$ref": "#/definitions/app/definitions/id"
  9822. }
  9823. },
  9824. "strictProperties": true,
  9825. "type": [
  9826. "object"
  9827. ]
  9828. }
  9829. }
  9830. }
  9831. }
  9832. },
  9833. "required": [
  9834. "pipeline",
  9835. "source",
  9836. "targets"
  9837. ],
  9838. "type": [
  9839. "object"
  9840. ]
  9841. },
  9842. "title": "Create"
  9843. },
  9844. {
  9845. "description": "Info for existing pipeline promotion.",
  9846. "href": "/pipeline-promotions/{(%23%2Fdefinitions%2Fpipeline-promotion%2Fdefinitions%2Fidentity)}",
  9847. "method": "GET",
  9848. "rel": "self",
  9849. "targetSchema": {
  9850. "$ref": "#/definitions/pipeline-promotion"
  9851. },
  9852. "title": "Info"
  9853. }
  9854. ],
  9855. "properties": {
  9856. "created_at": {
  9857. "$ref": "#/definitions/pipeline-promotion/definitions/created_at"
  9858. },
  9859. "id": {
  9860. "$ref": "#/definitions/pipeline-promotion/definitions/id"
  9861. },
  9862. "pipeline": {
  9863. "description": "the pipeline which the promotion belongs to",
  9864. "properties": {
  9865. "id": {
  9866. "$ref": "#/definitions/pipeline/definitions/id"
  9867. }
  9868. },
  9869. "strictProperties": true,
  9870. "type": [
  9871. "object"
  9872. ]
  9873. },
  9874. "source": {
  9875. "description": "the app being promoted from",
  9876. "properties": {
  9877. "app": {
  9878. "description": "the app which was promoted from",
  9879. "properties": {
  9880. "id": {
  9881. "$ref": "#/definitions/app/definitions/id"
  9882. }
  9883. },
  9884. "strictProperties": true,
  9885. "type": [
  9886. "object"
  9887. ]
  9888. },
  9889. "release": {
  9890. "description": "the release used to promoted from",
  9891. "properties": {
  9892. "id": {
  9893. "$ref": "#/definitions/release/definitions/id"
  9894. }
  9895. },
  9896. "type": [
  9897. "object"
  9898. ]
  9899. }
  9900. },
  9901. "strictProperties": true,
  9902. "type": [
  9903. "object"
  9904. ]
  9905. },
  9906. "status": {
  9907. "$ref": "#/definitions/pipeline-promotion/definitions/status"
  9908. },
  9909. "updated_at": {
  9910. "$ref": "#/definitions/pipeline-promotion/definitions/updated_at"
  9911. }
  9912. }
  9913. },
  9914. "pipeline": {
  9915. "description": "A pipeline allows grouping of apps into different stages.",
  9916. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  9917. "stability": "prototype",
  9918. "strictProperties": true,
  9919. "title": "Heroku Platform API - Pipeline",
  9920. "type": [
  9921. "object"
  9922. ],
  9923. "definitions": {
  9924. "created_at": {
  9925. "description": "when pipeline was created",
  9926. "example": "2012-01-01T12:00:00Z",
  9927. "format": "date-time",
  9928. "readOnly": true,
  9929. "type": [
  9930. "string"
  9931. ]
  9932. },
  9933. "id": {
  9934. "description": "unique identifier of pipeline",
  9935. "example": "01234567-89ab-cdef-0123-456789abcdef",
  9936. "format": "uuid",
  9937. "readOnly": true,
  9938. "type": [
  9939. "string"
  9940. ]
  9941. },
  9942. "identity": {
  9943. "anyOf": [
  9944. {
  9945. "$ref": "#/definitions/pipeline/definitions/id"
  9946. },
  9947. {
  9948. "$ref": "#/definitions/pipeline/definitions/name"
  9949. }
  9950. ]
  9951. },
  9952. "name": {
  9953. "description": "name of pipeline",
  9954. "example": "example",
  9955. "pattern": "^[a-z][a-z0-9-]{2,29}$",
  9956. "readOnly": false,
  9957. "type": [
  9958. "string"
  9959. ]
  9960. },
  9961. "updated_at": {
  9962. "description": "when pipeline was updated",
  9963. "example": "2012-01-01T12:00:00Z",
  9964. "format": "date-time",
  9965. "readOnly": true,
  9966. "type": [
  9967. "string"
  9968. ]
  9969. }
  9970. },
  9971. "links": [
  9972. {
  9973. "description": "Create a new pipeline.",
  9974. "href": "/pipelines",
  9975. "method": "POST",
  9976. "rel": "create",
  9977. "schema": {
  9978. "properties": {
  9979. "name": {
  9980. "$ref": "#/definitions/pipeline/definitions/name"
  9981. }
  9982. },
  9983. "required": [
  9984. "name"
  9985. ],
  9986. "type": [
  9987. "object"
  9988. ]
  9989. },
  9990. "targetSchema": {
  9991. "$ref": "#/definitions/pipeline"
  9992. },
  9993. "title": "Create"
  9994. },
  9995. {
  9996. "description": "Info for existing pipeline.",
  9997. "href": "/pipelines/{(%23%2Fdefinitions%2Fpipeline%2Fdefinitions%2Fidentity)}",
  9998. "method": "GET",
  9999. "rel": "self",
  10000. "targetSchema": {
  10001. "$ref": "#/definitions/pipeline"
  10002. },
  10003. "title": "Info"
  10004. },
  10005. {
  10006. "description": "Delete an existing pipeline.",
  10007. "href": "/pipelines/{(%23%2Fdefinitions%2Fpipeline%2Fdefinitions%2Fid)}",
  10008. "method": "DELETE",
  10009. "rel": "delete",
  10010. "targetSchema": {
  10011. "$ref": "#/definitions/pipeline"
  10012. },
  10013. "title": "Delete"
  10014. },
  10015. {
  10016. "description": "Update an existing pipeline.",
  10017. "href": "/pipelines/{(%23%2Fdefinitions%2Fpipeline%2Fdefinitions%2Fid)}",
  10018. "method": "PATCH",
  10019. "rel": "update",
  10020. "schema": {
  10021. "properties": {
  10022. "name": {
  10023. "$ref": "#/definitions/pipeline/definitions/name"
  10024. }
  10025. },
  10026. "type": [
  10027. "object"
  10028. ]
  10029. },
  10030. "targetSchema": {
  10031. "$ref": "#/definitions/pipeline"
  10032. },
  10033. "title": "Update"
  10034. },
  10035. {
  10036. "description": "List existing pipelines.",
  10037. "href": "/pipelines",
  10038. "method": "GET",
  10039. "rel": "instances",
  10040. "targetSchema": {
  10041. "type": [
  10042. "array"
  10043. ],
  10044. "items": {
  10045. "$ref": "#/definitions/pipeline"
  10046. }
  10047. },
  10048. "title": "List"
  10049. }
  10050. ],
  10051. "properties": {
  10052. "created_at": {
  10053. "$ref": "#/definitions/pipeline/definitions/created_at"
  10054. },
  10055. "id": {
  10056. "$ref": "#/definitions/pipeline/definitions/id"
  10057. },
  10058. "name": {
  10059. "$ref": "#/definitions/pipeline/definitions/name"
  10060. },
  10061. "updated_at": {
  10062. "$ref": "#/definitions/pipeline/definitions/updated_at"
  10063. }
  10064. }
  10065. },
  10066. "plan": {
  10067. "description": "Plans represent different configurations of add-ons that may be added to apps. Endpoints under add-on services can be accessed without authentication.",
  10068. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  10069. "stability": "production",
  10070. "strictProperties": true,
  10071. "title": "Heroku Platform API - Plan",
  10072. "type": [
  10073. "object"
  10074. ],
  10075. "definitions": {
  10076. "created_at": {
  10077. "description": "when plan was created",
  10078. "example": "2012-01-01T12:00:00Z",
  10079. "format": "date-time",
  10080. "readOnly": true,
  10081. "type": [
  10082. "string"
  10083. ]
  10084. },
  10085. "compliance": {
  10086. "description": "the compliance regimes applied to an add-on plan",
  10087. "example": [
  10088. "HIPAA"
  10089. ],
  10090. "readOnly": false,
  10091. "type": [
  10092. "null",
  10093. "array"
  10094. ],
  10095. "items": {
  10096. "$ref": "#/definitions/plan/definitions/regime"
  10097. }
  10098. },
  10099. "default": {
  10100. "description": "whether this plan is the default for its add-on service",
  10101. "example": false,
  10102. "readOnly": true,
  10103. "type": [
  10104. "boolean"
  10105. ]
  10106. },
  10107. "description": {
  10108. "description": "description of plan",
  10109. "example": "Heroku Postgres Dev",
  10110. "readOnly": true,
  10111. "type": [
  10112. "string"
  10113. ]
  10114. },
  10115. "human_name": {
  10116. "description": "human readable name of the add-on plan",
  10117. "example": "Dev",
  10118. "readOnly": true,
  10119. "type": [
  10120. "string"
  10121. ]
  10122. },
  10123. "id": {
  10124. "description": "unique identifier of this plan",
  10125. "example": "01234567-89ab-cdef-0123-456789abcdef",
  10126. "format": "uuid",
  10127. "readOnly": true,
  10128. "type": [
  10129. "string"
  10130. ]
  10131. },
  10132. "installable_inside_private_network": {
  10133. "description": "whether this plan is installable to a Private Spaces app",
  10134. "example": false,
  10135. "readOnly": true,
  10136. "type": [
  10137. "boolean"
  10138. ]
  10139. },
  10140. "installable_outside_private_network": {
  10141. "description": "whether this plan is installable to a Common Runtime app",
  10142. "example": true,
  10143. "readOnly": true,
  10144. "type": [
  10145. "boolean"
  10146. ]
  10147. },
  10148. "identity": {
  10149. "anyOf": [
  10150. {
  10151. "$ref": "#/definitions/plan/definitions/id"
  10152. },
  10153. {
  10154. "$ref": "#/definitions/plan/definitions/name"
  10155. }
  10156. ]
  10157. },
  10158. "name": {
  10159. "description": "unique name of this plan",
  10160. "example": "heroku-postgresql:dev",
  10161. "readOnly": true,
  10162. "type": [
  10163. "string"
  10164. ]
  10165. },
  10166. "regime": {
  10167. "description": "compliance requirements an add-on plan must adhere to",
  10168. "readOnly": true,
  10169. "example": "HIPAA",
  10170. "type": [
  10171. "string"
  10172. ],
  10173. "enum": [
  10174. "HIPAA",
  10175. "PCI"
  10176. ]
  10177. },
  10178. "cents": {
  10179. "description": "price in cents per unit of plan",
  10180. "example": 0,
  10181. "readOnly": true,
  10182. "type": [
  10183. "integer"
  10184. ]
  10185. },
  10186. "unit": {
  10187. "description": "unit of price for plan",
  10188. "example": "month",
  10189. "readOnly": true,
  10190. "type": [
  10191. "string"
  10192. ]
  10193. },
  10194. "space_default": {
  10195. "description": "whether this plan is the default for apps in Private Spaces",
  10196. "example": false,
  10197. "readOnly": true,
  10198. "type": [
  10199. "boolean"
  10200. ]
  10201. },
  10202. "state": {
  10203. "description": "release status for plan",
  10204. "example": "public",
  10205. "readOnly": true,
  10206. "type": [
  10207. "string"
  10208. ]
  10209. },
  10210. "updated_at": {
  10211. "description": "when plan was updated",
  10212. "example": "2012-01-01T12:00:00Z",
  10213. "format": "date-time",
  10214. "readOnly": true,
  10215. "type": [
  10216. "string"
  10217. ]
  10218. },
  10219. "visible": {
  10220. "description": "whether this plan is publicly visible",
  10221. "example": true,
  10222. "readOnly": true,
  10223. "type": [
  10224. "boolean"
  10225. ]
  10226. }
  10227. },
  10228. "links": [
  10229. {
  10230. "description": "Info for existing plan.",
  10231. "href": "/addon-services/{(%23%2Fdefinitions%2Fadd-on-service%2Fdefinitions%2Fidentity)}/plans/{(%23%2Fdefinitions%2Fplan%2Fdefinitions%2Fidentity)}",
  10232. "method": "GET",
  10233. "rel": "self",
  10234. "targetSchema": {
  10235. "$ref": "#/definitions/plan"
  10236. },
  10237. "title": "Info"
  10238. },
  10239. {
  10240. "description": "Info for existing plan.",
  10241. "href": "/plans/{(%23%2Fdefinitions%2Fplan%2Fdefinitions%2Fidentity)}",
  10242. "method": "GET",
  10243. "rel": "self",
  10244. "targetSchema": {
  10245. "$ref": "#/definitions/plan"
  10246. },
  10247. "title": "Info"
  10248. },
  10249. {
  10250. "description": "List existing plans.",
  10251. "href": "/addon-services/{(%23%2Fdefinitions%2Fadd-on-service%2Fdefinitions%2Fidentity)}/plans",
  10252. "method": "GET",
  10253. "rel": "instances",
  10254. "targetSchema": {
  10255. "items": {
  10256. "$ref": "#/definitions/plan"
  10257. },
  10258. "type": [
  10259. "array"
  10260. ]
  10261. },
  10262. "title": "List"
  10263. }
  10264. ],
  10265. "properties": {
  10266. "addon_service": {
  10267. "description": "identity of add-on service",
  10268. "properties": {
  10269. "id": {
  10270. "$ref": "#/definitions/add-on-service/definitions/id"
  10271. },
  10272. "name": {
  10273. "$ref": "#/definitions/add-on-service/definitions/name"
  10274. }
  10275. },
  10276. "strictProperties": true,
  10277. "type": [
  10278. "object"
  10279. ]
  10280. },
  10281. "created_at": {
  10282. "$ref": "#/definitions/plan/definitions/created_at"
  10283. },
  10284. "compliance": {
  10285. "$ref": "#/definitions/plan/definitions/compliance"
  10286. },
  10287. "default": {
  10288. "$ref": "#/definitions/plan/definitions/default"
  10289. },
  10290. "description": {
  10291. "$ref": "#/definitions/plan/definitions/description"
  10292. },
  10293. "human_name": {
  10294. "$ref": "#/definitions/plan/definitions/human_name"
  10295. },
  10296. "id": {
  10297. "$ref": "#/definitions/plan/definitions/id"
  10298. },
  10299. "installable_inside_private_network": {
  10300. "$ref": "#/definitions/plan/definitions/installable_inside_private_network"
  10301. },
  10302. "installable_outside_private_network": {
  10303. "$ref": "#/definitions/plan/definitions/installable_outside_private_network"
  10304. },
  10305. "name": {
  10306. "$ref": "#/definitions/plan/definitions/name"
  10307. },
  10308. "price": {
  10309. "description": "price",
  10310. "properties": {
  10311. "cents": {
  10312. "$ref": "#/definitions/plan/definitions/cents"
  10313. },
  10314. "unit": {
  10315. "$ref": "#/definitions/plan/definitions/unit"
  10316. }
  10317. },
  10318. "strictProperties": true,
  10319. "type": [
  10320. "object"
  10321. ]
  10322. },
  10323. "space_default": {
  10324. "$ref": "#/definitions/plan/definitions/space_default"
  10325. },
  10326. "state": {
  10327. "$ref": "#/definitions/plan/definitions/state"
  10328. },
  10329. "updated_at": {
  10330. "$ref": "#/definitions/plan/definitions/updated_at"
  10331. },
  10332. "visible": {
  10333. "$ref": "#/definitions/plan/definitions/visible"
  10334. }
  10335. }
  10336. },
  10337. "rate-limit": {
  10338. "description": "Rate Limit represents the number of request tokens each account holds. Requests to this endpoint do not count towards the rate limit.",
  10339. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  10340. "stability": "production",
  10341. "strictProperties": true,
  10342. "title": "Heroku Platform API - Rate Limit",
  10343. "type": [
  10344. "object"
  10345. ],
  10346. "definitions": {
  10347. "identity": {
  10348. },
  10349. "remaining": {
  10350. "description": "allowed requests remaining in current interval",
  10351. "example": 2399,
  10352. "readOnly": true,
  10353. "type": [
  10354. "integer"
  10355. ]
  10356. }
  10357. },
  10358. "links": [
  10359. {
  10360. "description": "Info for rate limits.",
  10361. "href": "/account/rate-limits",
  10362. "method": "GET",
  10363. "rel": "self",
  10364. "targetSchema": {
  10365. "$ref": "#/definitions/rate-limit"
  10366. },
  10367. "title": "Info"
  10368. }
  10369. ],
  10370. "properties": {
  10371. "remaining": {
  10372. "$ref": "#/definitions/rate-limit/definitions/remaining"
  10373. }
  10374. }
  10375. },
  10376. "region": {
  10377. "description": "A region represents a geographic location in which your application may run.",
  10378. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  10379. "stability": "production",
  10380. "strictProperties": true,
  10381. "title": "Heroku Platform API - Region",
  10382. "type": [
  10383. "object"
  10384. ],
  10385. "definitions": {
  10386. "country": {
  10387. "description": "country where the region exists",
  10388. "example": "United States",
  10389. "readOnly": true,
  10390. "type": [
  10391. "string"
  10392. ]
  10393. },
  10394. "created_at": {
  10395. "description": "when region was created",
  10396. "example": "2012-01-01T12:00:00Z",
  10397. "format": "date-time",
  10398. "readOnly": true,
  10399. "type": [
  10400. "string"
  10401. ]
  10402. },
  10403. "description": {
  10404. "description": "description of region",
  10405. "example": "United States",
  10406. "readOnly": true,
  10407. "type": [
  10408. "string"
  10409. ]
  10410. },
  10411. "id": {
  10412. "description": "unique identifier of region",
  10413. "example": "01234567-89ab-cdef-0123-456789abcdef",
  10414. "format": "uuid",
  10415. "readOnly": true,
  10416. "type": [
  10417. "string"
  10418. ]
  10419. },
  10420. "identity": {
  10421. "anyOf": [
  10422. {
  10423. "$ref": "#/definitions/region/definitions/id"
  10424. },
  10425. {
  10426. "$ref": "#/definitions/region/definitions/name"
  10427. }
  10428. ]
  10429. },
  10430. "locale": {
  10431. "description": "area in the country where the region exists",
  10432. "example": "Virginia",
  10433. "readOnly": true,
  10434. "type": [
  10435. "string"
  10436. ]
  10437. },
  10438. "name": {
  10439. "description": "unique name of region",
  10440. "example": "us",
  10441. "readOnly": true,
  10442. "type": [
  10443. "string"
  10444. ]
  10445. },
  10446. "private_capable": {
  10447. "description": "whether or not region is available for creating a Private Space",
  10448. "example": false,
  10449. "readOnly": true,
  10450. "type": [
  10451. "boolean"
  10452. ]
  10453. },
  10454. "provider": {
  10455. "description": "provider of underlying substrate",
  10456. "type": [
  10457. "object"
  10458. ],
  10459. "properties": {
  10460. "name": {
  10461. "description": "name of provider",
  10462. "example": "amazon-web-services",
  10463. "readOnly": true,
  10464. "type": [
  10465. "string"
  10466. ]
  10467. },
  10468. "region": {
  10469. "description": "region name used by provider",
  10470. "example": "us-east-1",
  10471. "readOnly": true,
  10472. "type": [
  10473. "string"
  10474. ]
  10475. }
  10476. },
  10477. "readOnly": true
  10478. },
  10479. "updated_at": {
  10480. "description": "when region was updated",
  10481. "example": "2012-01-01T12:00:00Z",
  10482. "format": "date-time",
  10483. "readOnly": true,
  10484. "type": [
  10485. "string"
  10486. ]
  10487. }
  10488. },
  10489. "links": [
  10490. {
  10491. "description": "Info for existing region.",
  10492. "href": "/regions/{(%23%2Fdefinitions%2Fregion%2Fdefinitions%2Fidentity)}",
  10493. "method": "GET",
  10494. "rel": "self",
  10495. "targetSchema": {
  10496. "$ref": "#/definitions/region"
  10497. },
  10498. "title": "Info"
  10499. },
  10500. {
  10501. "description": "List existing regions.",
  10502. "href": "/regions",
  10503. "method": "GET",
  10504. "rel": "instances",
  10505. "targetSchema": {
  10506. "items": {
  10507. "$ref": "#/definitions/region"
  10508. },
  10509. "type": [
  10510. "array"
  10511. ]
  10512. },
  10513. "title": "List"
  10514. }
  10515. ],
  10516. "properties": {
  10517. "country": {
  10518. "$ref": "#/definitions/region/definitions/country"
  10519. },
  10520. "created_at": {
  10521. "$ref": "#/definitions/region/definitions/created_at"
  10522. },
  10523. "description": {
  10524. "$ref": "#/definitions/region/definitions/description"
  10525. },
  10526. "id": {
  10527. "$ref": "#/definitions/region/definitions/id"
  10528. },
  10529. "locale": {
  10530. "$ref": "#/definitions/region/definitions/locale"
  10531. },
  10532. "name": {
  10533. "$ref": "#/definitions/region/definitions/name"
  10534. },
  10535. "private_capable": {
  10536. "$ref": "#/definitions/region/definitions/private_capable"
  10537. },
  10538. "provider": {
  10539. "$ref": "#/definitions/region/definitions/provider"
  10540. },
  10541. "updated_at": {
  10542. "$ref": "#/definitions/region/definitions/updated_at"
  10543. }
  10544. }
  10545. },
  10546. "release": {
  10547. "description": "A release represents a combination of code, config vars and add-ons for an app on Heroku.",
  10548. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  10549. "stability": "production",
  10550. "strictProperties": true,
  10551. "title": "Heroku Platform API - Release",
  10552. "type": [
  10553. "object"
  10554. ],
  10555. "definitions": {
  10556. "created_at": {
  10557. "description": "when release was created",
  10558. "example": "2012-01-01T12:00:00Z",
  10559. "format": "date-time",
  10560. "readOnly": true,
  10561. "type": [
  10562. "string"
  10563. ]
  10564. },
  10565. "description": {
  10566. "description": "description of changes in this release",
  10567. "example": "Added new feature",
  10568. "readOnly": true,
  10569. "type": [
  10570. "string"
  10571. ]
  10572. },
  10573. "status": {
  10574. "description": "current status of the release",
  10575. "enum": [
  10576. "failed",
  10577. "pending",
  10578. "succeeded"
  10579. ],
  10580. "example": "succeeded",
  10581. "readOnly": true,
  10582. "type": [
  10583. "string"
  10584. ]
  10585. },
  10586. "id": {
  10587. "description": "unique identifier of release",
  10588. "example": "01234567-89ab-cdef-0123-456789abcdef",
  10589. "format": "uuid",
  10590. "readOnly": true,
  10591. "type": [
  10592. "string"
  10593. ]
  10594. },
  10595. "identity": {
  10596. "anyOf": [
  10597. {
  10598. "$ref": "#/definitions/release/definitions/id"
  10599. },
  10600. {
  10601. "$ref": "#/definitions/release/definitions/version"
  10602. }
  10603. ]
  10604. },
  10605. "updated_at": {
  10606. "description": "when release was updated",
  10607. "example": "2012-01-01T12:00:00Z",
  10608. "format": "date-time",
  10609. "readOnly": true,
  10610. "type": [
  10611. "string"
  10612. ]
  10613. },
  10614. "version": {
  10615. "description": "unique version assigned to the release",
  10616. "example": 11,
  10617. "readOnly": true,
  10618. "type": [
  10619. "integer"
  10620. ]
  10621. },
  10622. "current": {
  10623. "description": "indicates this release as being the current one for the app",
  10624. "example": true,
  10625. "readOnly": true,
  10626. "type": [
  10627. "boolean"
  10628. ]
  10629. }
  10630. },
  10631. "links": [
  10632. {
  10633. "description": "Info for existing release.",
  10634. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/releases/{(%23%2Fdefinitions%2Frelease%2Fdefinitions%2Fidentity)}",
  10635. "method": "GET",
  10636. "rel": "self",
  10637. "targetSchema": {
  10638. "$ref": "#/definitions/release"
  10639. },
  10640. "title": "Info"
  10641. },
  10642. {
  10643. "description": "List existing releases.",
  10644. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/releases",
  10645. "method": "GET",
  10646. "rel": "instances",
  10647. "targetSchema": {
  10648. "items": {
  10649. "$ref": "#/definitions/release"
  10650. },
  10651. "type": [
  10652. "array"
  10653. ]
  10654. },
  10655. "title": "List"
  10656. },
  10657. {
  10658. "description": "Create new release.",
  10659. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/releases",
  10660. "method": "POST",
  10661. "rel": "create",
  10662. "schema": {
  10663. "properties": {
  10664. "description": {
  10665. "$ref": "#/definitions/release/definitions/description"
  10666. },
  10667. "slug": {
  10668. "$ref": "#/definitions/slug/definitions/identity"
  10669. }
  10670. },
  10671. "required": [
  10672. "slug"
  10673. ],
  10674. "type": [
  10675. "object"
  10676. ]
  10677. },
  10678. "targetSchema": {
  10679. "$ref": "#/definitions/release"
  10680. },
  10681. "title": "Create"
  10682. },
  10683. {
  10684. "description": "Rollback to an existing release.",
  10685. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/releases",
  10686. "method": "POST",
  10687. "rel": "create",
  10688. "schema": {
  10689. "properties": {
  10690. "release": {
  10691. "$ref": "#/definitions/release/definitions/id"
  10692. }
  10693. },
  10694. "required": [
  10695. "release"
  10696. ],
  10697. "type": [
  10698. "object"
  10699. ]
  10700. },
  10701. "targetSchema": {
  10702. "$ref": "#/definitions/release"
  10703. },
  10704. "title": "Rollback"
  10705. }
  10706. ],
  10707. "properties": {
  10708. "addon_plan_names": {
  10709. "description": "add-on plans installed on the app for this release",
  10710. "type": [
  10711. "array"
  10712. ],
  10713. "items": {
  10714. "$ref": "#/definitions/plan/definitions/name"
  10715. }
  10716. },
  10717. "app": {
  10718. "description": "app involved in the release",
  10719. "properties": {
  10720. "name": {
  10721. "$ref": "#/definitions/app/definitions/name"
  10722. },
  10723. "id": {
  10724. "$ref": "#/definitions/app/definitions/id"
  10725. }
  10726. },
  10727. "type": [
  10728. "object"
  10729. ]
  10730. },
  10731. "created_at": {
  10732. "$ref": "#/definitions/release/definitions/created_at"
  10733. },
  10734. "description": {
  10735. "$ref": "#/definitions/release/definitions/description"
  10736. },
  10737. "id": {
  10738. "$ref": "#/definitions/release/definitions/id"
  10739. },
  10740. "updated_at": {
  10741. "$ref": "#/definitions/release/definitions/updated_at"
  10742. },
  10743. "slug": {
  10744. "description": "slug running in this release",
  10745. "properties": {
  10746. "id": {
  10747. "$ref": "#/definitions/slug/definitions/id"
  10748. }
  10749. },
  10750. "strictProperties": true,
  10751. "type": [
  10752. "object",
  10753. "null"
  10754. ]
  10755. },
  10756. "status": {
  10757. "$ref": "#/definitions/release/definitions/status"
  10758. },
  10759. "user": {
  10760. "description": "user that created the release",
  10761. "properties": {
  10762. "id": {
  10763. "$ref": "#/definitions/account/definitions/id"
  10764. },
  10765. "email": {
  10766. "$ref": "#/definitions/account/definitions/email"
  10767. }
  10768. },
  10769. "strictProperties": true,
  10770. "type": [
  10771. "object"
  10772. ]
  10773. },
  10774. "version": {
  10775. "$ref": "#/definitions/release/definitions/version"
  10776. },
  10777. "current": {
  10778. "$ref": "#/definitions/release/definitions/current"
  10779. }
  10780. }
  10781. },
  10782. "slug": {
  10783. "description": "A slug is a snapshot of your application code that is ready to run on the platform.",
  10784. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  10785. "stability": "production",
  10786. "strictProperties": true,
  10787. "title": "Heroku Platform API - Slug",
  10788. "type": [
  10789. "object"
  10790. ],
  10791. "definitions": {
  10792. "buildpack_provided_description": {
  10793. "description": "description from buildpack of slug",
  10794. "example": "Ruby/Rack",
  10795. "readOnly": false,
  10796. "type": [
  10797. "null",
  10798. "string"
  10799. ]
  10800. },
  10801. "checksum": {
  10802. "description": "an optional checksum of the slug for verifying its integrity",
  10803. "example": "SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  10804. "readOnly": true,
  10805. "type": [
  10806. "null",
  10807. "string"
  10808. ]
  10809. },
  10810. "commit": {
  10811. "description": "identification of the code with your version control system (eg: SHA of the git HEAD)",
  10812. "example": "60883d9e8947a57e04dc9124f25df004866a2051",
  10813. "readOnly": false,
  10814. "type": [
  10815. "null",
  10816. "string"
  10817. ]
  10818. },
  10819. "commit_description": {
  10820. "description": "an optional description of the provided commit",
  10821. "example": "fixed a bug with API documentation",
  10822. "readOnly": false,
  10823. "type": [
  10824. "null",
  10825. "string"
  10826. ]
  10827. },
  10828. "created_at": {
  10829. "description": "when slug was created",
  10830. "example": "2012-01-01T12:00:00Z",
  10831. "format": "date-time",
  10832. "readOnly": true,
  10833. "type": [
  10834. "string"
  10835. ]
  10836. },
  10837. "id": {
  10838. "description": "unique identifier of slug",
  10839. "example": "01234567-89ab-cdef-0123-456789abcdef",
  10840. "format": "uuid",
  10841. "readOnly": true,
  10842. "type": [
  10843. "string"
  10844. ]
  10845. },
  10846. "identity": {
  10847. "anyOf": [
  10848. {
  10849. "$ref": "#/definitions/slug/definitions/id"
  10850. }
  10851. ]
  10852. },
  10853. "method": {
  10854. "description": "method to be used to interact with the slug blob",
  10855. "example": "GET",
  10856. "readOnly": true,
  10857. "type": [
  10858. "string"
  10859. ]
  10860. },
  10861. "process_types": {
  10862. "additionalProperties": false,
  10863. "description": "hash mapping process type names to their respective command",
  10864. "example": {
  10865. "web": "./bin/web -p $PORT"
  10866. },
  10867. "patternProperties": {
  10868. "^[-\\w]{1,128}$": {
  10869. "type": [
  10870. "string"
  10871. ]
  10872. }
  10873. },
  10874. "readOnly": false,
  10875. "type": [
  10876. "object"
  10877. ]
  10878. },
  10879. "size": {
  10880. "default": null,
  10881. "description": "size of slug, in bytes",
  10882. "example": 2048,
  10883. "readOnly": true,
  10884. "type": [
  10885. "integer",
  10886. "null"
  10887. ]
  10888. },
  10889. "updated_at": {
  10890. "description": "when slug was updated",
  10891. "example": "2012-01-01T12:00:00Z",
  10892. "format": "date-time",
  10893. "readOnly": true,
  10894. "type": [
  10895. "string"
  10896. ]
  10897. },
  10898. "url": {
  10899. "description": "URL to interact with the slug blob",
  10900. "example": "https://api.heroku.com/slugs/1234.tgz",
  10901. "readOnly": true,
  10902. "type": [
  10903. "string"
  10904. ]
  10905. }
  10906. },
  10907. "links": [
  10908. {
  10909. "description": "Info for existing slug.",
  10910. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/slugs/{(%23%2Fdefinitions%2Fslug%2Fdefinitions%2Fidentity)}",
  10911. "method": "GET",
  10912. "rel": "self",
  10913. "targetSchema": {
  10914. "$ref": "#/definitions/slug"
  10915. },
  10916. "title": "Info"
  10917. },
  10918. {
  10919. "description": "Create a new slug. For more information please refer to [Deploying Slugs using the Platform API](https://devcenter.heroku.com/articles/platform-api-deploying-slugs).",
  10920. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/slugs",
  10921. "method": "POST",
  10922. "rel": "create",
  10923. "schema": {
  10924. "properties": {
  10925. "buildpack_provided_description": {
  10926. "$ref": "#/definitions/slug/definitions/buildpack_provided_description"
  10927. },
  10928. "checksum": {
  10929. "$ref": "#/definitions/slug/definitions/checksum"
  10930. },
  10931. "commit": {
  10932. "$ref": "#/definitions/slug/definitions/commit"
  10933. },
  10934. "commit_description": {
  10935. "$ref": "#/definitions/slug/definitions/commit_description"
  10936. },
  10937. "process_types": {
  10938. "$ref": "#/definitions/slug/definitions/process_types"
  10939. },
  10940. "stack": {
  10941. "$ref": "#/definitions/stack/definitions/identity"
  10942. }
  10943. },
  10944. "required": [
  10945. "process_types"
  10946. ],
  10947. "type": [
  10948. "object"
  10949. ]
  10950. },
  10951. "targetSchema": {
  10952. "$ref": "#/definitions/slug",
  10953. "example": {
  10954. "blob": {
  10955. "method": "PUT",
  10956. "url": "https://api.heroku.com/slugs/1234.tgz"
  10957. },
  10958. "buildpack_provided_description": "Ruby/Rack",
  10959. "checksum": "SHA256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
  10960. "commit": "60883d9e8947a57e04dc9124f25df004866a2051",
  10961. "commit_description": "fixed a bug with API documentation",
  10962. "created_at": "2012-01-01T12:00:00Z",
  10963. "id": "01234567-89ab-cdef-0123-456789abcdef",
  10964. "process_types": {
  10965. "web": "./bin/web -p $PORT"
  10966. },
  10967. "size": 2048,
  10968. "stack": {
  10969. "id": "01234567-89ab-cdef-0123-456789abcdef",
  10970. "name": "cedar-14"
  10971. },
  10972. "updated_at": "2012-01-01T12:00:00Z"
  10973. }
  10974. },
  10975. "title": "Create"
  10976. }
  10977. ],
  10978. "properties": {
  10979. "blob": {
  10980. "description": "pointer to the url where clients can fetch or store the actual release binary",
  10981. "properties": {
  10982. "method": {
  10983. "$ref": "#/definitions/slug/definitions/method"
  10984. },
  10985. "url": {
  10986. "$ref": "#/definitions/slug/definitions/url"
  10987. }
  10988. },
  10989. "strictProperties": true,
  10990. "type": [
  10991. "object"
  10992. ]
  10993. },
  10994. "buildpack_provided_description": {
  10995. "$ref": "#/definitions/slug/definitions/buildpack_provided_description"
  10996. },
  10997. "checksum": {
  10998. "$ref": "#/definitions/slug/definitions/checksum"
  10999. },
  11000. "commit": {
  11001. "$ref": "#/definitions/slug/definitions/commit"
  11002. },
  11003. "commit_description": {
  11004. "$ref": "#/definitions/slug/definitions/commit_description"
  11005. },
  11006. "created_at": {
  11007. "$ref": "#/definitions/slug/definitions/created_at"
  11008. },
  11009. "id": {
  11010. "$ref": "#/definitions/slug/definitions/id"
  11011. },
  11012. "process_types": {
  11013. "$ref": "#/definitions/slug/definitions/process_types"
  11014. },
  11015. "size": {
  11016. "$ref": "#/definitions/slug/definitions/size"
  11017. },
  11018. "stack": {
  11019. "description": "identity of slug stack",
  11020. "properties": {
  11021. "id": {
  11022. "$ref": "#/definitions/stack/definitions/id"
  11023. },
  11024. "name": {
  11025. "$ref": "#/definitions/stack/definitions/name"
  11026. }
  11027. },
  11028. "strictProperties": true,
  11029. "type": [
  11030. "object"
  11031. ]
  11032. },
  11033. "updated_at": {
  11034. "$ref": "#/definitions/slug/definitions/updated_at"
  11035. }
  11036. }
  11037. },
  11038. "sms-number": {
  11039. "description": "SMS numbers are used for recovery on accounts with two-factor authentication enabled.",
  11040. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  11041. "stability": "production",
  11042. "strictProperties": true,
  11043. "title": "Heroku Platform API - SMS Number",
  11044. "type": [
  11045. "object"
  11046. ],
  11047. "definitions": {
  11048. "sms_number": {
  11049. "$ref": "#/definitions/account/definitions/sms_number"
  11050. }
  11051. },
  11052. "links": [
  11053. {
  11054. "description": "Recover an account using an SMS recovery code",
  11055. "href": "/users/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/sms-number",
  11056. "method": "GET",
  11057. "rel": "self",
  11058. "targetSchema": {
  11059. "$ref": "#/definitions/sms-number"
  11060. },
  11061. "title": "SMS Number"
  11062. },
  11063. {
  11064. "description": "Recover an account using an SMS recovery code",
  11065. "href": "/users/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/sms-number/actions/recover",
  11066. "method": "POST",
  11067. "rel": "self",
  11068. "targetSchema": {
  11069. "$ref": "#/definitions/sms-number"
  11070. },
  11071. "title": "Recover"
  11072. },
  11073. {
  11074. "description": "Confirm an SMS number change with a confirmation code",
  11075. "href": "/users/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}/sms-number/actions/confirm",
  11076. "method": "POST",
  11077. "rel": "self",
  11078. "targetSchema": {
  11079. "$ref": "#/definitions/sms-number"
  11080. },
  11081. "title": "Confirm"
  11082. }
  11083. ],
  11084. "properties": {
  11085. "sms_number": {
  11086. "$ref": "#/definitions/account/definitions/sms_number"
  11087. }
  11088. }
  11089. },
  11090. "sni-endpoint": {
  11091. "description": "SNI Endpoint is a public address serving a custom SSL cert for HTTPS traffic, using the SNI TLS extension, to a Heroku app.",
  11092. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  11093. "title": "Heroku Platform API - SNI Endpoint",
  11094. "stability": "development",
  11095. "strictProperties": true,
  11096. "type": [
  11097. "object"
  11098. ],
  11099. "definitions": {
  11100. "certificate_chain": {
  11101. "description": "raw contents of the public certificate chain (eg: .crt or .pem file)",
  11102. "example": "-----BEGIN CERTIFICATE----- ...",
  11103. "readOnly": false,
  11104. "type": [
  11105. "string"
  11106. ]
  11107. },
  11108. "cname": {
  11109. "description": "deprecated; refer to GET /apps/:id/domains for valid CNAMEs for this app",
  11110. "example": "example.herokussl.com",
  11111. "readOnly": false,
  11112. "type": [
  11113. "string"
  11114. ]
  11115. },
  11116. "created_at": {
  11117. "description": "when endpoint was created",
  11118. "example": "2012-01-01T12:00:00Z",
  11119. "format": "date-time",
  11120. "readOnly": true,
  11121. "type": [
  11122. "string"
  11123. ]
  11124. },
  11125. "id": {
  11126. "description": "unique identifier of this SNI endpoint",
  11127. "example": "01234567-89ab-cdef-0123-456789abcdef",
  11128. "format": "uuid",
  11129. "readOnly": true,
  11130. "type": [
  11131. "string"
  11132. ]
  11133. },
  11134. "identity": {
  11135. "anyOf": [
  11136. {
  11137. "$ref": "#/definitions/sni-endpoint/definitions/id"
  11138. },
  11139. {
  11140. "$ref": "#/definitions/sni-endpoint/definitions/name"
  11141. }
  11142. ]
  11143. },
  11144. "name": {
  11145. "description": "unique name for SNI endpoint",
  11146. "example": "example",
  11147. "pattern": "^[a-z][a-z0-9-]{2,29}$",
  11148. "readOnly": true,
  11149. "type": [
  11150. "string"
  11151. ]
  11152. },
  11153. "private_key": {
  11154. "description": "contents of the private key (eg .key file)",
  11155. "example": "-----BEGIN RSA PRIVATE KEY----- ...",
  11156. "readOnly": false,
  11157. "type": [
  11158. "string"
  11159. ]
  11160. },
  11161. "updated_at": {
  11162. "description": "when SNI endpoint was updated",
  11163. "example": "2012-01-01T12:00:00Z",
  11164. "format": "date-time",
  11165. "readOnly": true,
  11166. "type": [
  11167. "string"
  11168. ]
  11169. }
  11170. },
  11171. "links": [
  11172. {
  11173. "description": "Create a new SNI endpoint.",
  11174. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/sni-endpoints",
  11175. "method": "POST",
  11176. "rel": "create",
  11177. "schema": {
  11178. "properties": {
  11179. "certificate_chain": {
  11180. "$ref": "#/definitions/sni-endpoint/definitions/certificate_chain"
  11181. },
  11182. "private_key": {
  11183. "$ref": "#/definitions/sni-endpoint/definitions/private_key"
  11184. }
  11185. },
  11186. "required": [
  11187. "certificate_chain",
  11188. "private_key"
  11189. ],
  11190. "type": [
  11191. "object"
  11192. ]
  11193. },
  11194. "targetSchema": {
  11195. "$ref": "#/definitions/sni-endpoint"
  11196. },
  11197. "title": "Create"
  11198. },
  11199. {
  11200. "description": "Delete existing SNI endpoint.",
  11201. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/sni-endpoints/{(%23%2Fdefinitions%2Fsni-endpoint%2Fdefinitions%2Fidentity)}",
  11202. "method": "DELETE",
  11203. "rel": "destroy",
  11204. "targetSchema": {
  11205. "$ref": "#/definitions/sni-endpoint"
  11206. },
  11207. "title": "Delete"
  11208. },
  11209. {
  11210. "description": "Info for existing SNI endpoint.",
  11211. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/sni-endpoints/{(%23%2Fdefinitions%2Fsni-endpoint%2Fdefinitions%2Fidentity)}",
  11212. "method": "GET",
  11213. "rel": "self",
  11214. "targetSchema": {
  11215. "$ref": "#/definitions/sni-endpoint"
  11216. },
  11217. "title": "Info"
  11218. },
  11219. {
  11220. "description": "List existing SNI endpoints.",
  11221. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/sni-endpoints",
  11222. "method": "GET",
  11223. "rel": "instances",
  11224. "targetSchema": {
  11225. "items": {
  11226. "$ref": "#/definitions/sni-endpoint"
  11227. },
  11228. "type": [
  11229. "array"
  11230. ]
  11231. },
  11232. "title": "List"
  11233. },
  11234. {
  11235. "description": "Update an existing SNI endpoint.",
  11236. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/sni-endpoints/{(%23%2Fdefinitions%2Fsni-endpoint%2Fdefinitions%2Fidentity)}",
  11237. "method": "PATCH",
  11238. "rel": "update",
  11239. "schema": {
  11240. "properties": {
  11241. "certificate_chain": {
  11242. "$ref": "#/definitions/sni-endpoint/definitions/certificate_chain"
  11243. },
  11244. "private_key": {
  11245. "$ref": "#/definitions/sni-endpoint/definitions/private_key"
  11246. }
  11247. },
  11248. "required": [
  11249. "certificate_chain",
  11250. "private_key"
  11251. ],
  11252. "type": [
  11253. "object"
  11254. ]
  11255. },
  11256. "targetSchema": {
  11257. "$ref": "#/definitions/sni-endpoint"
  11258. },
  11259. "title": "Update"
  11260. }
  11261. ],
  11262. "properties": {
  11263. "certificate_chain": {
  11264. "$ref": "#/definitions/sni-endpoint/definitions/certificate_chain"
  11265. },
  11266. "cname": {
  11267. "$ref": "#/definitions/sni-endpoint/definitions/cname"
  11268. },
  11269. "created_at": {
  11270. "$ref": "#/definitions/sni-endpoint/definitions/created_at"
  11271. },
  11272. "id": {
  11273. "$ref": "#/definitions/sni-endpoint/definitions/id"
  11274. },
  11275. "name": {
  11276. "$ref": "#/definitions/sni-endpoint/definitions/name"
  11277. },
  11278. "updated_at": {
  11279. "$ref": "#/definitions/sni-endpoint/definitions/updated_at"
  11280. }
  11281. }
  11282. },
  11283. "source": {
  11284. "description": "A source is a location for uploading and downloading an application's source code.",
  11285. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  11286. "stability": "production",
  11287. "strictProperties": true,
  11288. "title": "Heroku Platform API - Source",
  11289. "type": [
  11290. "object"
  11291. ],
  11292. "definitions": {
  11293. "get_url": {
  11294. "description": "URL to download the source",
  11295. "example": "https://api.heroku.com/sources/1234.tgz",
  11296. "readOnly": true,
  11297. "type": [
  11298. "string"
  11299. ]
  11300. },
  11301. "put_url": {
  11302. "description": "URL to upload the source",
  11303. "example": "https://api.heroku.com/sources/1234.tgz",
  11304. "readOnly": true,
  11305. "type": [
  11306. "string"
  11307. ]
  11308. }
  11309. },
  11310. "links": [
  11311. {
  11312. "description": "Create URLs for uploading and downloading source.",
  11313. "href": "/sources",
  11314. "method": "POST",
  11315. "rel": "create",
  11316. "targetSchema": {
  11317. "$ref": "#/definitions/source"
  11318. },
  11319. "title": "Create"
  11320. },
  11321. {
  11322. "deactivate_on": "2017-08-01",
  11323. "description": "Create URLs for uploading and downloading source. Deprecated in favor of `POST /sources`",
  11324. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/sources",
  11325. "method": "POST",
  11326. "rel": "create",
  11327. "targetSchema": {
  11328. "$ref": "#/definitions/source"
  11329. },
  11330. "title": "Create - Deprecated"
  11331. }
  11332. ],
  11333. "properties": {
  11334. "source_blob": {
  11335. "description": "pointer to the URL where clients can fetch or store the source",
  11336. "properties": {
  11337. "get_url": {
  11338. "$ref": "#/definitions/source/definitions/get_url"
  11339. },
  11340. "put_url": {
  11341. "$ref": "#/definitions/source/definitions/put_url"
  11342. }
  11343. },
  11344. "strictProperties": true,
  11345. "type": [
  11346. "object"
  11347. ]
  11348. }
  11349. }
  11350. },
  11351. "space-app-access": {
  11352. "description": "Space access represents the permissions a particular user has on a particular space.",
  11353. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  11354. "stability": "prototype",
  11355. "title": "Heroku Platform API - Space Access",
  11356. "type": [
  11357. "object"
  11358. ],
  11359. "definitions": {
  11360. "id": {
  11361. "description": "unique identifier of the space a user has permissions on",
  11362. "example": "01234567-89ab-cdef-0123-456789abcdef",
  11363. "format": "uuid",
  11364. "readOnly": true,
  11365. "type": [
  11366. "string"
  11367. ]
  11368. },
  11369. "identity": {
  11370. "anyOf": [
  11371. {
  11372. "$ref": "#/definitions/space-app-access/definitions/id"
  11373. }
  11374. ]
  11375. }
  11376. },
  11377. "links": [
  11378. {
  11379. "description": "List permissions for a given user on a given space.",
  11380. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/members/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}",
  11381. "method": "GET",
  11382. "rel": "self",
  11383. "targetSchema": {
  11384. "$ref": "#/definitions/space-app-access"
  11385. },
  11386. "title": "Info"
  11387. },
  11388. {
  11389. "description": "Update an existing user's set of permissions on a space.",
  11390. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/members/{(%23%2Fdefinitions%2Faccount%2Fdefinitions%2Fidentity)}",
  11391. "method": "PATCH",
  11392. "rel": "update",
  11393. "schema": {
  11394. "type": [
  11395. "object"
  11396. ],
  11397. "properties": {
  11398. "permissions": {
  11399. "type": [
  11400. "array"
  11401. ],
  11402. "items": {
  11403. "type": [
  11404. "object"
  11405. ],
  11406. "properties": {
  11407. "name": {
  11408. "type": [
  11409. "string"
  11410. ]
  11411. }
  11412. }
  11413. }
  11414. }
  11415. }
  11416. },
  11417. "targetSchema": {
  11418. "$ref": "#/definitions/space-app-access"
  11419. },
  11420. "title": "Update"
  11421. },
  11422. {
  11423. "description": "List all users and their permissions on a space.",
  11424. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/members",
  11425. "method": "GET",
  11426. "rel": "instances",
  11427. "targetSchema": {
  11428. "items": {
  11429. "$ref": "#/definitions/space-app-access"
  11430. },
  11431. "type": [
  11432. "array"
  11433. ]
  11434. },
  11435. "title": "List"
  11436. }
  11437. ],
  11438. "properties": {
  11439. "space": {
  11440. "description": "space user belongs to",
  11441. "properties": {
  11442. "name": {
  11443. "$ref": "#/definitions/app/definitions/name"
  11444. },
  11445. "id": {
  11446. "$ref": "#/definitions/app/definitions/id"
  11447. }
  11448. },
  11449. "strictProperties": true,
  11450. "type": [
  11451. "object"
  11452. ]
  11453. },
  11454. "created_at": {
  11455. "$ref": "#/definitions/space/definitions/created_at"
  11456. },
  11457. "id": {
  11458. "$ref": "#/definitions/space/definitions/id"
  11459. },
  11460. "permissions": {
  11461. "description": "user space permissions",
  11462. "type": [
  11463. "array"
  11464. ],
  11465. "items": {
  11466. "type": [
  11467. "object"
  11468. ],
  11469. "properties": {
  11470. "description": {
  11471. "type": [
  11472. "string"
  11473. ]
  11474. },
  11475. "name": {
  11476. "type": [
  11477. "string"
  11478. ]
  11479. }
  11480. }
  11481. }
  11482. },
  11483. "updated_at": {
  11484. "$ref": "#/definitions/space/definitions/updated_at"
  11485. },
  11486. "user": {
  11487. "description": "identity of user account",
  11488. "properties": {
  11489. "email": {
  11490. "$ref": "#/definitions/account/definitions/email"
  11491. },
  11492. "id": {
  11493. "$ref": "#/definitions/account/definitions/id"
  11494. }
  11495. },
  11496. "strictProperties": true,
  11497. "type": [
  11498. "object"
  11499. ]
  11500. }
  11501. }
  11502. },
  11503. "space-nat": {
  11504. "description": "Network address translation (NAT) for stable outbound IP addresses from a space",
  11505. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  11506. "stability": "prototype",
  11507. "strictProperties": true,
  11508. "title": "Heroku Platform API - Space Network Address Translation",
  11509. "type": [
  11510. "object"
  11511. ],
  11512. "definitions": {
  11513. "created_at": {
  11514. "description": "when network address translation for a space was created",
  11515. "example": "2012-01-01T12:00:00Z",
  11516. "format": "date-time",
  11517. "readOnly": true,
  11518. "type": [
  11519. "string"
  11520. ]
  11521. },
  11522. "ip_v4_address": {
  11523. "example": "123.123.123.123",
  11524. "format": "ipv4",
  11525. "pattern": "^(([01]?\\d?\\d|2[0-4]\\d|25[0-5])\\.){3}([01]?\\d?\\d|2[0-4]\\d|25[0-5])$",
  11526. "type": [
  11527. "string"
  11528. ]
  11529. },
  11530. "sources": {
  11531. "description": "potential IPs from which outbound network traffic will originate",
  11532. "readOnly": true,
  11533. "type": [
  11534. "array"
  11535. ],
  11536. "items": {
  11537. "$ref": "#/definitions/space-nat/definitions/ip_v4_address"
  11538. }
  11539. },
  11540. "state": {
  11541. "description": "availability of network address translation for a space",
  11542. "enum": [
  11543. "disabled",
  11544. "updating",
  11545. "enabled"
  11546. ],
  11547. "example": "enabled",
  11548. "readOnly": true,
  11549. "type": [
  11550. "string"
  11551. ]
  11552. },
  11553. "updated_at": {
  11554. "description": "when network address translation for a space was updated",
  11555. "example": "2012-01-01T12:00:00Z",
  11556. "format": "date-time",
  11557. "readOnly": true,
  11558. "type": [
  11559. "string"
  11560. ]
  11561. }
  11562. },
  11563. "links": [
  11564. {
  11565. "description": "Current state of network address translation for a space.",
  11566. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}/nat",
  11567. "method": "GET",
  11568. "rel": "self",
  11569. "targetSchema": {
  11570. "$ref": "#/definitions/space-nat"
  11571. },
  11572. "title": "Info"
  11573. }
  11574. ],
  11575. "properties": {
  11576. "created_at": {
  11577. "$ref": "#/definitions/space-nat/definitions/created_at"
  11578. },
  11579. "sources": {
  11580. "$ref": "#/definitions/space-nat/definitions/sources"
  11581. },
  11582. "state": {
  11583. "$ref": "#/definitions/space-nat/definitions/state"
  11584. },
  11585. "updated_at": {
  11586. "$ref": "#/definitions/space-nat/definitions/updated_at"
  11587. }
  11588. }
  11589. },
  11590. "space": {
  11591. "description": "A space is an isolated, highly available, secure app execution environments, running in the modern VPC substrate.",
  11592. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  11593. "stability": "prototype",
  11594. "strictProperties": true,
  11595. "title": "Heroku Platform API - Space",
  11596. "type": [
  11597. "object"
  11598. ],
  11599. "definitions": {
  11600. "created_at": {
  11601. "description": "when space was created",
  11602. "example": "2012-01-01T12:00:00Z",
  11603. "format": "date-time",
  11604. "readOnly": true,
  11605. "type": [
  11606. "string"
  11607. ]
  11608. },
  11609. "id": {
  11610. "description": "unique identifier of space",
  11611. "example": "01234567-89ab-cdef-0123-456789abcdef",
  11612. "format": "uuid",
  11613. "readOnly": true,
  11614. "type": [
  11615. "string"
  11616. ]
  11617. },
  11618. "identity": {
  11619. "anyOf": [
  11620. {
  11621. "$ref": "#/definitions/space/definitions/id"
  11622. },
  11623. {
  11624. "$ref": "#/definitions/space/definitions/name"
  11625. }
  11626. ]
  11627. },
  11628. "name": {
  11629. "description": "unique name of space",
  11630. "example": "nasa",
  11631. "readOnly": false,
  11632. "pattern": "^[a-z0-9](?:[a-z0-9]|-(?!-))+[a-z0-9]$",
  11633. "type": [
  11634. "string"
  11635. ]
  11636. },
  11637. "shield": {
  11638. "description": "true if this space has shield enabled",
  11639. "readOnly": true,
  11640. "example": true,
  11641. "type": [
  11642. "boolean"
  11643. ]
  11644. },
  11645. "state": {
  11646. "description": "availability of this space",
  11647. "enum": [
  11648. "allocating",
  11649. "allocated",
  11650. "deleting"
  11651. ],
  11652. "example": "allocated",
  11653. "readOnly": true,
  11654. "type": [
  11655. "string"
  11656. ]
  11657. },
  11658. "updated_at": {
  11659. "description": "when space was updated",
  11660. "example": "2012-01-01T12:00:00Z",
  11661. "format": "date-time",
  11662. "readOnly": true,
  11663. "type": [
  11664. "string"
  11665. ]
  11666. }
  11667. },
  11668. "links": [
  11669. {
  11670. "description": "List existing spaces.",
  11671. "href": "/spaces",
  11672. "method": "GET",
  11673. "rel": "instances",
  11674. "targetSchema": {
  11675. "items": {
  11676. "$ref": "#/definitions/space"
  11677. },
  11678. "type": [
  11679. "array"
  11680. ]
  11681. },
  11682. "title": "List"
  11683. },
  11684. {
  11685. "description": "Info for existing space.",
  11686. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}",
  11687. "method": "GET",
  11688. "rel": "self",
  11689. "targetSchema": {
  11690. "$ref": "#/definitions/space"
  11691. },
  11692. "title": "Info"
  11693. },
  11694. {
  11695. "description": "Update an existing space.",
  11696. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}",
  11697. "method": "PATCH",
  11698. "rel": "update",
  11699. "schema": {
  11700. "properties": {
  11701. "name": {
  11702. "$ref": "#/definitions/space/definitions/name"
  11703. }
  11704. },
  11705. "type": [
  11706. "object"
  11707. ]
  11708. },
  11709. "targetSchema": {
  11710. "$ref": "#/definitions/space"
  11711. },
  11712. "title": "Update"
  11713. },
  11714. {
  11715. "description": "Delete an existing space.",
  11716. "href": "/spaces/{(%23%2Fdefinitions%2Fspace%2Fdefinitions%2Fidentity)}",
  11717. "method": "DELETE",
  11718. "rel": "destroy",
  11719. "targetSchema": {
  11720. "$ref": "#/definitions/space"
  11721. },
  11722. "title": "Delete"
  11723. },
  11724. {
  11725. "description": "Create a new space.",
  11726. "href": "/spaces",
  11727. "method": "POST",
  11728. "rel": "create",
  11729. "schema": {
  11730. "properties": {
  11731. "name": {
  11732. "$ref": "#/definitions/space/definitions/name"
  11733. },
  11734. "organization": {
  11735. "$ref": "#/definitions/organization/definitions/name"
  11736. },
  11737. "region": {
  11738. "$ref": "#/definitions/region/definitions/identity"
  11739. },
  11740. "shield": {
  11741. "$ref": "#/definitions/space/definitions/shield"
  11742. }
  11743. },
  11744. "required": [
  11745. "name",
  11746. "organization"
  11747. ],
  11748. "type": [
  11749. "object"
  11750. ]
  11751. },
  11752. "targetSchema": {
  11753. "$ref": "#/definitions/space"
  11754. },
  11755. "title": "Create"
  11756. }
  11757. ],
  11758. "properties": {
  11759. "created_at": {
  11760. "$ref": "#/definitions/space/definitions/created_at"
  11761. },
  11762. "id": {
  11763. "$ref": "#/definitions/space/definitions/id"
  11764. },
  11765. "name": {
  11766. "$ref": "#/definitions/space/definitions/name"
  11767. },
  11768. "organization": {
  11769. "description": "organization that owns this space",
  11770. "properties": {
  11771. "name": {
  11772. "$ref": "#/definitions/organization/definitions/name"
  11773. }
  11774. },
  11775. "type": [
  11776. "object"
  11777. ]
  11778. },
  11779. "team": {
  11780. "description": "team that owns this space",
  11781. "properties": {
  11782. "id": {
  11783. "$ref": "#/definitions/team/definitions/id"
  11784. },
  11785. "name": {
  11786. "$ref": "#/definitions/team/definitions/name"
  11787. }
  11788. },
  11789. "type": [
  11790. "object"
  11791. ]
  11792. },
  11793. "region": {
  11794. "description": "identity of space region",
  11795. "properties": {
  11796. "id": {
  11797. "$ref": "#/definitions/region/definitions/id"
  11798. },
  11799. "name": {
  11800. "$ref": "#/definitions/region/definitions/name"
  11801. }
  11802. },
  11803. "strictProperties": true,
  11804. "type": [
  11805. "object"
  11806. ]
  11807. },
  11808. "shield": {
  11809. "$ref": "#/definitions/space/definitions/shield"
  11810. },
  11811. "state": {
  11812. "$ref": "#/definitions/space/definitions/state"
  11813. },
  11814. "updated_at": {
  11815. "$ref": "#/definitions/space/definitions/updated_at"
  11816. }
  11817. }
  11818. },
  11819. "ssl-endpoint": {
  11820. "description": "[SSL Endpoint](https://devcenter.heroku.com/articles/ssl-endpoint) is a public address serving custom SSL cert for HTTPS traffic to a Heroku app. Note that an app must have the `ssl:endpoint` add-on installed before it can provision an SSL Endpoint using these APIs.",
  11821. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  11822. "title": "Heroku Platform API - SSL Endpoint",
  11823. "stability": "production",
  11824. "strictProperties": true,
  11825. "type": [
  11826. "object"
  11827. ],
  11828. "definitions": {
  11829. "certificate_chain": {
  11830. "description": "raw contents of the public certificate chain (eg: .crt or .pem file)",
  11831. "example": "-----BEGIN CERTIFICATE----- ...",
  11832. "readOnly": false,
  11833. "type": [
  11834. "string"
  11835. ]
  11836. },
  11837. "cname": {
  11838. "description": "canonical name record, the address to point a domain at",
  11839. "example": "example.herokussl.com",
  11840. "readOnly": false,
  11841. "type": [
  11842. "string"
  11843. ]
  11844. },
  11845. "created_at": {
  11846. "description": "when endpoint was created",
  11847. "example": "2012-01-01T12:00:00Z",
  11848. "format": "date-time",
  11849. "readOnly": true,
  11850. "type": [
  11851. "string"
  11852. ]
  11853. },
  11854. "id": {
  11855. "description": "unique identifier of this SSL endpoint",
  11856. "example": "01234567-89ab-cdef-0123-456789abcdef",
  11857. "format": "uuid",
  11858. "readOnly": true,
  11859. "type": [
  11860. "string"
  11861. ]
  11862. },
  11863. "identity": {
  11864. "anyOf": [
  11865. {
  11866. "$ref": "#/definitions/ssl-endpoint/definitions/id"
  11867. },
  11868. {
  11869. "$ref": "#/definitions/ssl-endpoint/definitions/name"
  11870. }
  11871. ]
  11872. },
  11873. "name": {
  11874. "description": "unique name for SSL endpoint",
  11875. "example": "example",
  11876. "pattern": "^[a-z][a-z0-9-]{2,29}$",
  11877. "readOnly": true,
  11878. "type": [
  11879. "string"
  11880. ]
  11881. },
  11882. "preprocess": {
  11883. "default": true,
  11884. "description": "allow Heroku to modify an uploaded public certificate chain if deemed advantageous by adding missing intermediaries, stripping unnecessary ones, etc.",
  11885. "example": true,
  11886. "readOnly": false,
  11887. "type": [
  11888. "boolean"
  11889. ]
  11890. },
  11891. "private_key": {
  11892. "description": "contents of the private key (eg .key file)",
  11893. "example": "-----BEGIN RSA PRIVATE KEY----- ...",
  11894. "readOnly": false,
  11895. "type": [
  11896. "string"
  11897. ]
  11898. },
  11899. "rollback": {
  11900. "default": false,
  11901. "description": "indicates that a rollback should be performed",
  11902. "example": false,
  11903. "readOnly": false,
  11904. "type": [
  11905. "boolean"
  11906. ]
  11907. },
  11908. "updated_at": {
  11909. "description": "when endpoint was updated",
  11910. "example": "2012-01-01T12:00:00Z",
  11911. "format": "date-time",
  11912. "readOnly": true,
  11913. "type": [
  11914. "string"
  11915. ]
  11916. }
  11917. },
  11918. "links": [
  11919. {
  11920. "description": "Create a new SSL endpoint.",
  11921. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/ssl-endpoints",
  11922. "method": "POST",
  11923. "rel": "create",
  11924. "schema": {
  11925. "properties": {
  11926. "certificate_chain": {
  11927. "$ref": "#/definitions/ssl-endpoint/definitions/certificate_chain"
  11928. },
  11929. "preprocess": {
  11930. "$ref": "#/definitions/ssl-endpoint/definitions/preprocess"
  11931. },
  11932. "private_key": {
  11933. "$ref": "#/definitions/ssl-endpoint/definitions/private_key"
  11934. }
  11935. },
  11936. "required": [
  11937. "certificate_chain",
  11938. "private_key"
  11939. ],
  11940. "type": [
  11941. "object"
  11942. ]
  11943. },
  11944. "targetSchema": {
  11945. "$ref": "#/definitions/ssl-endpoint"
  11946. },
  11947. "title": "Create"
  11948. },
  11949. {
  11950. "description": "Delete existing SSL endpoint.",
  11951. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/ssl-endpoints/{(%23%2Fdefinitions%2Fssl-endpoint%2Fdefinitions%2Fidentity)}",
  11952. "method": "DELETE",
  11953. "rel": "destroy",
  11954. "targetSchema": {
  11955. "$ref": "#/definitions/ssl-endpoint"
  11956. },
  11957. "title": "Delete"
  11958. },
  11959. {
  11960. "description": "Info for existing SSL endpoint.",
  11961. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/ssl-endpoints/{(%23%2Fdefinitions%2Fssl-endpoint%2Fdefinitions%2Fidentity)}",
  11962. "method": "GET",
  11963. "rel": "self",
  11964. "targetSchema": {
  11965. "$ref": "#/definitions/ssl-endpoint"
  11966. },
  11967. "title": "Info"
  11968. },
  11969. {
  11970. "description": "List existing SSL endpoints.",
  11971. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/ssl-endpoints",
  11972. "method": "GET",
  11973. "rel": "instances",
  11974. "targetSchema": {
  11975. "items": {
  11976. "$ref": "#/definitions/ssl-endpoint"
  11977. },
  11978. "type": [
  11979. "array"
  11980. ]
  11981. },
  11982. "title": "List"
  11983. },
  11984. {
  11985. "description": "Update an existing SSL endpoint.",
  11986. "href": "/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/ssl-endpoints/{(%23%2Fdefinitions%2Fssl-endpoint%2Fdefinitions%2Fidentity)}",
  11987. "method": "PATCH",
  11988. "rel": "update",
  11989. "schema": {
  11990. "properties": {
  11991. "certificate_chain": {
  11992. "$ref": "#/definitions/ssl-endpoint/definitions/certificate_chain"
  11993. },
  11994. "preprocess": {
  11995. "$ref": "#/definitions/ssl-endpoint/definitions/preprocess"
  11996. },
  11997. "private_key": {
  11998. "$ref": "#/definitions/ssl-endpoint/definitions/private_key"
  11999. },
  12000. "rollback": {
  12001. "$ref": "#/definitions/ssl-endpoint/definitions/rollback"
  12002. }
  12003. },
  12004. "type": [
  12005. "object"
  12006. ]
  12007. },
  12008. "targetSchema": {
  12009. "$ref": "#/definitions/ssl-endpoint"
  12010. },
  12011. "title": "Update"
  12012. }
  12013. ],
  12014. "properties": {
  12015. "app": {
  12016. "description": "application associated with this ssl-endpoint",
  12017. "type": [
  12018. "object"
  12019. ],
  12020. "properties": {
  12021. "id": {
  12022. "$ref": "#/definitions/app/definitions/id"
  12023. },
  12024. "name": {
  12025. "$ref": "#/definitions/app/definitions/name"
  12026. }
  12027. },
  12028. "strictProperties": true
  12029. },
  12030. "certificate_chain": {
  12031. "$ref": "#/definitions/ssl-endpoint/definitions/certificate_chain"
  12032. },
  12033. "cname": {
  12034. "$ref": "#/definitions/ssl-endpoint/definitions/cname"
  12035. },
  12036. "created_at": {
  12037. "$ref": "#/definitions/ssl-endpoint/definitions/created_at"
  12038. },
  12039. "id": {
  12040. "$ref": "#/definitions/ssl-endpoint/definitions/id"
  12041. },
  12042. "name": {
  12043. "$ref": "#/definitions/ssl-endpoint/definitions/name"
  12044. },
  12045. "updated_at": {
  12046. "$ref": "#/definitions/ssl-endpoint/definitions/updated_at"
  12047. }
  12048. }
  12049. },
  12050. "stack": {
  12051. "description": "Stacks are the different application execution environments available in the Heroku platform.",
  12052. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  12053. "stability": "production",
  12054. "strictProperties": true,
  12055. "title": "Heroku Platform API - Stack",
  12056. "type": [
  12057. "object"
  12058. ],
  12059. "definitions": {
  12060. "created_at": {
  12061. "description": "when stack was introduced",
  12062. "example": "2012-01-01T12:00:00Z",
  12063. "format": "date-time",
  12064. "readOnly": true,
  12065. "type": [
  12066. "string"
  12067. ]
  12068. },
  12069. "id": {
  12070. "description": "unique identifier of stack",
  12071. "example": "01234567-89ab-cdef-0123-456789abcdef",
  12072. "format": "uuid",
  12073. "readOnly": true,
  12074. "type": [
  12075. "string"
  12076. ]
  12077. },
  12078. "identity": {
  12079. "anyOf": [
  12080. {
  12081. "$ref": "#/definitions/stack/definitions/name"
  12082. },
  12083. {
  12084. "$ref": "#/definitions/stack/definitions/id"
  12085. }
  12086. ]
  12087. },
  12088. "name": {
  12089. "description": "unique name of stack",
  12090. "example": "cedar-14",
  12091. "readOnly": true,
  12092. "type": [
  12093. "string"
  12094. ]
  12095. },
  12096. "state": {
  12097. "description": "availability of this stack: beta, deprecated or public",
  12098. "example": "public",
  12099. "readOnly": true,
  12100. "type": [
  12101. "string"
  12102. ]
  12103. },
  12104. "updated_at": {
  12105. "description": "when stack was last modified",
  12106. "example": "2012-01-01T12:00:00Z",
  12107. "format": "date-time",
  12108. "readOnly": true,
  12109. "type": [
  12110. "string"
  12111. ]
  12112. }
  12113. },
  12114. "links": [
  12115. {
  12116. "description": "Stack info.",
  12117. "href": "/stacks/{(%23%2Fdefinitions%2Fstack%2Fdefinitions%2Fidentity)}",
  12118. "method": "GET",
  12119. "rel": "self",
  12120. "targetSchema": {
  12121. "$ref": "#/definitions/stack"
  12122. },
  12123. "title": "Info"
  12124. },
  12125. {
  12126. "description": "List available stacks.",
  12127. "href": "/stacks",
  12128. "method": "GET",
  12129. "rel": "instances",
  12130. "targetSchema": {
  12131. "items": {
  12132. "$ref": "#/definitions/stack"
  12133. },
  12134. "type": [
  12135. "array"
  12136. ]
  12137. },
  12138. "title": "List"
  12139. }
  12140. ],
  12141. "properties": {
  12142. "created_at": {
  12143. "$ref": "#/definitions/stack/definitions/created_at"
  12144. },
  12145. "id": {
  12146. "$ref": "#/definitions/stack/definitions/id"
  12147. },
  12148. "name": {
  12149. "$ref": "#/definitions/stack/definitions/name"
  12150. },
  12151. "state": {
  12152. "$ref": "#/definitions/stack/definitions/state"
  12153. },
  12154. "updated_at": {
  12155. "$ref": "#/definitions/stack/definitions/updated_at"
  12156. }
  12157. }
  12158. },
  12159. "team-app-collaborator": {
  12160. "description": "A team collaborator represents an account that has been given access to a team app on Heroku.",
  12161. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  12162. "stability": "development",
  12163. "title": "Heroku Platform API - Team App Collaborator",
  12164. "type": [
  12165. "object"
  12166. ],
  12167. "definitions": {
  12168. "identity": {
  12169. "anyOf": [
  12170. {
  12171. "$ref": "#/definitions/collaborator/definitions/email"
  12172. }
  12173. ]
  12174. }
  12175. },
  12176. "links": [
  12177. {
  12178. "description": "Create a new collaborator on a team app. Use this endpoint instead of the `/apps/{app_id_or_name}/collaborator` endpoint when you want the collaborator to be granted [permissions] (https://devcenter.heroku.com/articles/org-users-access#roles-and-app-permissions) according to their role in the team.",
  12179. "href": "/teams/apps/{(%23%2Fdefinitions%2Fapp%2Fdefinitions%2Fidentity)}/collaborators",
  12180. "method": "POST",
  12181. "rel": "create",
  12182. "schema": {
  12183. "properties": {
  12184. "permissions": {
  12185. "type": [
  12186. "array"
  12187. ],
  12188. "items": {
  12189. "$ref": "#/definitions/team-app-permission/definitions/name"
  12190. },
  12191. "description": "An array of permissions to give to the collaborator."
  12192. },
  12193. "silent": {
  12194. "$ref": "#/definitions/collaborator/definitions/silent"
  12195. },
  12196. "user": {
  12197. "$ref": "#/definitions/account/definitions/identity"
  12198. }
  12199. },
  12200. "required": [
  12201. "user"
  12202. ],
  12203. "type": [
  12204. "object"
  12205. ]
  12206. },
  12207. "targetSchema": {
  12208. "$ref": "#/definitions/team-app-collaborator"
  12209. },
  12210. "title": "Create"
  12211. },
  12212. {
  12213. "description": "Delete an existing collaborator from a team app.",
  12214. "href": "/teams/apps/{(%23%2Fdefinitions%2Fteam-app%2Fdefinitions%2Fidentity)}/collaborators/{(%23%2Fdefinitions%2Fteam-app-collaborator%2Fdefinitions%2Fidentity)}",
  12215. "method": "DELETE",
  12216. "rel": "destroy",
  12217. "targetSchema": {
  12218. "$ref": "#/definitions/team-app-collaborator"
  12219. },
  12220. "title": "Delete"
  12221. },
  12222. {
  12223. "description": "Info for a collaborator on a team app.",
  12224. "href": "/teams/apps/{(%23%2Fdefinitions%2Fteam-app%2Fdefinitions%2Fidentity)}/collaborators/{(%23%2Fdefinitions%2Fteam-app-collaborator%2Fdefinitions%2Fidentity)}",
  12225. "method": "GET",
  12226. "rel": "self",
  12227. "targetSchema": {
  12228. "$ref": "#/definitions/team-app-collaborator"
  12229. },
  12230. "title": "Info"
  12231. },
  12232. {
  12233. "description": "Update an existing collaborator from a team app.",
  12234. "href": "/teams/apps/{(%23%2Fdefinitions%2Fteam-app%2Fdefinitions%2Fidentity)}/collaborators/{(%23%2Fdefinitions%2Fteam-app-collaborator%2Fdefinitions%2Fidentity)}",
  12235. "method": "PATCH",
  12236. "rel": "update",
  12237. "schema": {
  12238. "properties": {
  12239. "permissions": {
  12240. "type": [
  12241. "array"
  12242. ],
  12243. "items": {
  12244. "$ref": "#/definitions/team-app-permission/definitions/name"
  12245. },
  12246. "description": "An array of permissions to give to the collaborator."
  12247. }
  12248. },
  12249. "required": [
  12250. "permissions"
  12251. ],
  12252. "type": [
  12253. "object"
  12254. ]
  12255. },
  12256. "targetSchema": {
  12257. "$ref": "#/definitions/team-app-collaborator"
  12258. },
  12259. "title": "Update"
  12260. },
  12261. {
  12262. "description": "List collaborators on a team app.",
  12263. "href": "/teams/apps/{(%23%2Fdefinitions%2Fteam-app%2Fdefinitions%2Fidentity)}/collaborators",
  12264. "method": "GET",
  12265. "rel": "instances",
  12266. "targetSchema": {
  12267. "items": {
  12268. "$ref": "#/definitions/team-app-collaborator"
  12269. },
  12270. "type": [
  12271. "array"
  12272. ]
  12273. },
  12274. "title": "List"
  12275. }
  12276. ],
  12277. "properties": {
  12278. "app": {
  12279. "description": "app collaborator belongs to",
  12280. "properties": {
  12281. "name": {
  12282. "$ref": "#/definitions/app/definitions/name"
  12283. },
  12284. "id": {
  12285. "$ref": "#/definitions/app/definitions/id"
  12286. }
  12287. },
  12288. "strictProperties": true,
  12289. "type": [
  12290. "object"
  12291. ]
  12292. },
  12293. "created_at": {
  12294. "$ref": "#/definitions/collaborator/definitions/created_at"
  12295. },
  12296. "id": {
  12297. "$ref": "#/definitions/collaborator/definitions/id"
  12298. },
  12299. "role": {
  12300. "$ref": "#/definitions/team/definitions/role"
  12301. },
  12302. "updated_at": {
  12303. "$ref": "#/definitions/collaborator/definitions/updated_at"
  12304. },
  12305. "user": {
  12306. "description": "identity of collaborated account",
  12307. "properties": {
  12308. "email": {
  12309. "$ref": "#/definitions/account/definitions/email"
  12310. },
  12311. "federated": {
  12312. "$ref": "#/definitions/account/definitions/federated"
  12313. },
  12314. "id": {
  12315. "$ref": "#/definitions/account/definitions/id"
  12316. }
  12317. },
  12318. "strictProperties": true,
  12319. "type": [
  12320. "object"
  12321. ]
  12322. }
  12323. }
  12324. },
  12325. "team-app-permission": {
  12326. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  12327. "description": "A team app permission is a behavior that is assigned to a user in a team app.",
  12328. "stability": "prototype",
  12329. "title": "Heroku Platform API - Team App Permission",
  12330. "type": [
  12331. "object"
  12332. ],
  12333. "definitions": {
  12334. "identity": {
  12335. "anyOf": [
  12336. {
  12337. "$ref": "#/definitions/team-app-permission/definitions/name"
  12338. }
  12339. ]
  12340. },
  12341. "name": {
  12342. "description": "The name of the app permission.",
  12343. "example": "view",
  12344. "readOnly": true,
  12345. "type": [
  12346. "string"
  12347. ]
  12348. },
  12349. "description": {
  12350. "description": "A description of what the app permission allows.",
  12351. "example": "Can manage config, deploy, run commands and restart the app.",
  12352. "readOnly": true,
  12353. "type": [
  12354. "string"
  12355. ]
  12356. }
  12357. },
  12358. "links": [
  12359. {
  12360. "description": "Lists permissions available to teams.",
  12361. "href": "/teams/permissions",
  12362. "method": "GET",
  12363. "rel": "instances",
  12364. "targetSchema": {
  12365. "items": {
  12366. "$ref": "#/definitions/team-app-permission"
  12367. },
  12368. "type": [
  12369. "array"
  12370. ]
  12371. },
  12372. "title": "List"
  12373. }
  12374. ],
  12375. "properties": {
  12376. "name": {
  12377. "$ref": "#/definitions/team-app-permission/definitions/name"
  12378. },
  12379. "description": {
  12380. "$ref": "#/definitions/team-app-permission/definitions/description"
  12381. }
  12382. }
  12383. },
  12384. "team-app": {
  12385. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  12386. "description": "An team app encapsulates the team specific functionality of Heroku apps.",
  12387. "stability": "development",
  12388. "title": "Heroku Platform API - Team App",
  12389. "type": [
  12390. "object"
  12391. ],
  12392. "definitions": {
  12393. "locked": {
  12394. "default": false,
  12395. "description": "are other team members forbidden from joining this app.",
  12396. "example": false,
  12397. "type": [
  12398. "boolean"
  12399. ]
  12400. },
  12401. "identity": {
  12402. "anyOf": [
  12403. {
  12404. "$ref": "#/definitions/app/definitions/name"
  12405. }
  12406. ]
  12407. },
  12408. "joined": {
  12409. "default": false,
  12410. "description": "is the current member a collaborator on this app.",
  12411. "example": false,
  12412. "type": [
  12413. "boolean"
  12414. ]
  12415. },
  12416. "personal": {
  12417. "default": false,
  12418. "description": "force creation of the app in the user account even if a default team is set.",
  12419. "example": false,
  12420. "type": [
  12421. "boolean"
  12422. ]
  12423. }
  12424. },
  12425. "links": [
  12426. {
  12427. "description": "Create a new app in the specified team, in the default team if unspecified, or in personal account, if default team is not set.",
  12428. "href": "/teams/apps",
  12429. "method": "POST",
  12430. "rel": "create",
  12431. "schema": {
  12432. "properties": {
  12433. "locked": {
  12434. "$ref": "#/definitions/team-app/definitions/locked"
  12435. },
  12436. "name": {
  12437. "$ref": "#/definitions/app/definitions/name"
  12438. },
  12439. "team": {
  12440. "$ref": "#/definitions/team/definitions/name"
  12441. },
  12442. "personal": {
  12443. "$ref": "#/definitions/team-app/definitions/personal"
  12444. },
  12445. "region": {
  12446. "$ref": "#/definitions/region/definitions/name"
  12447. },
  12448. "space": {
  12449. "$ref": "#/definitions/space/definitions/name"
  12450. },
  12451. "stack": {
  12452. "$ref": "#/definitions/stack/definitions/name"
  12453. }
  12454. },
  12455. "type": [
  12456. "object"
  12457. ]
  12458. },
  12459. "title": "Create"
  12460. },
  12461. {
  12462. "description": "List apps in the default team, or in personal account, if default team is not set.",
  12463. "href": "/teams/apps",
  12464. "method": "GET",
  12465. "rel": "instances",
  12466. "targetSchema": {
  12467. "items": {
  12468. "$ref": "#/definitions/team-app"
  12469. },
  12470. "type": [
  12471. "array"
  12472. ]
  12473. },
  12474. "title": "List"
  12475. },
  12476. {
  12477. "description": "List team apps.",
  12478. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/apps",
  12479. "method": "GET",
  12480. "rel": "instances",
  12481. "targetSchema": {
  12482. "items": {
  12483. "$ref": "#/definitions/team-app"
  12484. },
  12485. "type": [
  12486. "array"
  12487. ]
  12488. },
  12489. "title": "List For Organization"
  12490. },
  12491. {
  12492. "description": "Info for a team app.",
  12493. "href": "/teams/apps/{(%23%2Fdefinitions%2Fteam-app%2Fdefinitions%2Fidentity)}",
  12494. "method": "GET",
  12495. "rel": "self",
  12496. "title": "Info"
  12497. },
  12498. {
  12499. "description": "Lock or unlock a team app.",
  12500. "href": "/teams/apps/{(%23%2Fdefinitions%2Fteam-app%2Fdefinitions%2Fidentity)}",
  12501. "method": "PATCH",
  12502. "rel": "update",
  12503. "schema": {
  12504. "properties": {
  12505. "locked": {
  12506. "$ref": "#/definitions/team-app/definitions/locked"
  12507. }
  12508. },
  12509. "required": [
  12510. "locked"
  12511. ],
  12512. "type": [
  12513. "object"
  12514. ]
  12515. },
  12516. "targetSchema": {
  12517. "$ref": "#/definitions/team-app"
  12518. },
  12519. "title": "Update Locked"
  12520. },
  12521. {
  12522. "description": "Transfer an existing team app to another Heroku account.",
  12523. "href": "/teams/apps/{(%23%2Fdefinitions%2Fteam-app%2Fdefinitions%2Fidentity)}",
  12524. "method": "PATCH",
  12525. "rel": "update",
  12526. "schema": {
  12527. "properties": {
  12528. "owner": {
  12529. "$ref": "#/definitions/account/definitions/identity"
  12530. }
  12531. },
  12532. "required": [
  12533. "owner"
  12534. ],
  12535. "type": [
  12536. "object"
  12537. ]
  12538. },
  12539. "title": "Transfer to Account"
  12540. },
  12541. {
  12542. "description": "Transfer an existing team app to another team.",
  12543. "href": "/teams/apps/{(%23%2Fdefinitions%2Fteam-app%2Fdefinitions%2Fidentity)}",
  12544. "method": "PATCH",
  12545. "rel": "update",
  12546. "schema": {
  12547. "properties": {
  12548. "owner": {
  12549. "$ref": "#/definitions/team/definitions/name"
  12550. }
  12551. },
  12552. "required": [
  12553. "owner"
  12554. ],
  12555. "type": [
  12556. "object"
  12557. ]
  12558. },
  12559. "targetSchema": {
  12560. "$ref": "#/definitions/team-app"
  12561. },
  12562. "title": "Transfer to Team"
  12563. }
  12564. ],
  12565. "properties": {
  12566. "archived_at": {
  12567. "$ref": "#/definitions/app/definitions/archived_at"
  12568. },
  12569. "buildpack_provided_description": {
  12570. "$ref": "#/definitions/app/definitions/buildpack_provided_description"
  12571. },
  12572. "created_at": {
  12573. "$ref": "#/definitions/app/definitions/created_at"
  12574. },
  12575. "git_url": {
  12576. "$ref": "#/definitions/app/definitions/git_url"
  12577. },
  12578. "id": {
  12579. "$ref": "#/definitions/app/definitions/id"
  12580. },
  12581. "joined": {
  12582. "$ref": "#/definitions/team-app/definitions/joined"
  12583. },
  12584. "locked": {
  12585. "$ref": "#/definitions/team-app/definitions/locked"
  12586. },
  12587. "maintenance": {
  12588. "$ref": "#/definitions/app/definitions/maintenance"
  12589. },
  12590. "name": {
  12591. "$ref": "#/definitions/app/definitions/name"
  12592. },
  12593. "team": {
  12594. "description": "team that owns this app",
  12595. "properties": {
  12596. "name": {
  12597. "$ref": "#/definitions/team/definitions/name"
  12598. }
  12599. },
  12600. "type": [
  12601. "null",
  12602. "object"
  12603. ]
  12604. },
  12605. "owner": {
  12606. "description": "identity of app owner",
  12607. "properties": {
  12608. "email": {
  12609. "$ref": "#/definitions/account/definitions/email"
  12610. },
  12611. "id": {
  12612. "$ref": "#/definitions/account/definitions/id"
  12613. }
  12614. },
  12615. "type": [
  12616. "null",
  12617. "object"
  12618. ]
  12619. },
  12620. "region": {
  12621. "description": "identity of app region",
  12622. "properties": {
  12623. "id": {
  12624. "$ref": "#/definitions/region/definitions/id"
  12625. },
  12626. "name": {
  12627. "$ref": "#/definitions/region/definitions/name"
  12628. }
  12629. },
  12630. "type": [
  12631. "object"
  12632. ]
  12633. },
  12634. "released_at": {
  12635. "$ref": "#/definitions/app/definitions/released_at"
  12636. },
  12637. "repo_size": {
  12638. "$ref": "#/definitions/app/definitions/repo_size"
  12639. },
  12640. "slug_size": {
  12641. "$ref": "#/definitions/app/definitions/slug_size"
  12642. },
  12643. "space": {
  12644. "description": "identity of space",
  12645. "properties": {
  12646. "id": {
  12647. "$ref": "#/definitions/space/definitions/id"
  12648. },
  12649. "name": {
  12650. "$ref": "#/definitions/space/definitions/name"
  12651. }
  12652. },
  12653. "type": [
  12654. "null",
  12655. "object"
  12656. ]
  12657. },
  12658. "stack": {
  12659. "description": "identity of app stack",
  12660. "properties": {
  12661. "id": {
  12662. "$ref": "#/definitions/stack/definitions/id"
  12663. },
  12664. "name": {
  12665. "$ref": "#/definitions/stack/definitions/name"
  12666. }
  12667. },
  12668. "type": [
  12669. "object"
  12670. ]
  12671. },
  12672. "updated_at": {
  12673. "$ref": "#/definitions/app/definitions/updated_at"
  12674. },
  12675. "web_url": {
  12676. "$ref": "#/definitions/app/definitions/web_url"
  12677. }
  12678. }
  12679. },
  12680. "team-feature": {
  12681. "description": "A team feature represents a feature enabled on a team account.",
  12682. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  12683. "stability": "development",
  12684. "strictProperties": true,
  12685. "title": "Heroku Platform API - Team Feature",
  12686. "type": [
  12687. "object"
  12688. ],
  12689. "definitions": {
  12690. "created_at": {
  12691. "description": "when team feature was created",
  12692. "example": "2012-01-01T12:00:00Z",
  12693. "format": "date-time",
  12694. "readOnly": true,
  12695. "type": [
  12696. "string"
  12697. ]
  12698. },
  12699. "description": {
  12700. "description": "description of team feature",
  12701. "example": "Causes account to example.",
  12702. "readOnly": true,
  12703. "type": [
  12704. "string"
  12705. ]
  12706. },
  12707. "doc_url": {
  12708. "description": "documentation URL of team feature",
  12709. "example": "http://devcenter.heroku.com/articles/example",
  12710. "readOnly": true,
  12711. "type": [
  12712. "string"
  12713. ]
  12714. },
  12715. "enabled": {
  12716. "description": "whether or not team feature has been enabled",
  12717. "example": true,
  12718. "readOnly": false,
  12719. "type": [
  12720. "boolean"
  12721. ]
  12722. },
  12723. "id": {
  12724. "description": "unique identifier of team feature",
  12725. "example": "01234567-89ab-cdef-0123-456789abcdef",
  12726. "format": "uuid",
  12727. "readOnly": true,
  12728. "type": [
  12729. "string"
  12730. ]
  12731. },
  12732. "identity": {
  12733. "anyOf": [
  12734. {
  12735. "$ref": "#/definitions/team-feature/definitions/id"
  12736. },
  12737. {
  12738. "$ref": "#/definitions/team-feature/definitions/name"
  12739. }
  12740. ]
  12741. },
  12742. "name": {
  12743. "description": "unique name of team feature",
  12744. "example": "name",
  12745. "readOnly": true,
  12746. "type": [
  12747. "string"
  12748. ]
  12749. },
  12750. "state": {
  12751. "description": "state of team feature",
  12752. "example": "public",
  12753. "readOnly": true,
  12754. "type": [
  12755. "string"
  12756. ]
  12757. },
  12758. "updated_at": {
  12759. "description": "when team feature was updated",
  12760. "example": "2012-01-01T12:00:00Z",
  12761. "format": "date-time",
  12762. "readOnly": true,
  12763. "type": [
  12764. "string"
  12765. ]
  12766. },
  12767. "display_name": {
  12768. "description": "user readable feature name",
  12769. "example": "My Feature",
  12770. "readOnly": true,
  12771. "type": [
  12772. "string"
  12773. ]
  12774. },
  12775. "feedback_email": {
  12776. "description": "e-mail to send feedback about the feature",
  12777. "example": "feedback@heroku.com",
  12778. "readOnly": true,
  12779. "type": [
  12780. "string"
  12781. ]
  12782. }
  12783. },
  12784. "links": [
  12785. {
  12786. "description": "Info for an existing team feature.",
  12787. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/features/{(%23%2Fdefinitions%2Fteam-feature%2Fdefinitions%2Fidentity)}",
  12788. "method": "GET",
  12789. "rel": "self",
  12790. "targetSchema": {
  12791. "$ref": "#/definitions/team-feature"
  12792. },
  12793. "title": "Info"
  12794. },
  12795. {
  12796. "description": "List existing team features.",
  12797. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/features",
  12798. "method": "GET",
  12799. "rel": "instances",
  12800. "targetSchema": {
  12801. "items": {
  12802. "$ref": "#/definitions/team-feature"
  12803. },
  12804. "type": [
  12805. "array"
  12806. ]
  12807. },
  12808. "title": "List"
  12809. }
  12810. ],
  12811. "properties": {
  12812. "created_at": {
  12813. "$ref": "#/definitions/team-feature/definitions/created_at"
  12814. },
  12815. "description": {
  12816. "$ref": "#/definitions/team-feature/definitions/description"
  12817. },
  12818. "doc_url": {
  12819. "$ref": "#/definitions/team-feature/definitions/doc_url"
  12820. },
  12821. "enabled": {
  12822. "$ref": "#/definitions/team-feature/definitions/enabled"
  12823. },
  12824. "id": {
  12825. "$ref": "#/definitions/team-feature/definitions/id"
  12826. },
  12827. "name": {
  12828. "$ref": "#/definitions/team-feature/definitions/name"
  12829. },
  12830. "state": {
  12831. "$ref": "#/definitions/team-feature/definitions/state"
  12832. },
  12833. "updated_at": {
  12834. "$ref": "#/definitions/team-feature/definitions/updated_at"
  12835. },
  12836. "display_name": {
  12837. "$ref": "#/definitions/team-feature/definitions/display_name"
  12838. },
  12839. "feedback_email": {
  12840. "$ref": "#/definitions/team-feature/definitions/feedback_email"
  12841. }
  12842. }
  12843. },
  12844. "team-invitation": {
  12845. "description": "A team invitation represents an invite to a team.",
  12846. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  12847. "stability": "development",
  12848. "strictProperties": true,
  12849. "title": "Heroku Platform API - Team Invitation",
  12850. "type": [
  12851. "object"
  12852. ],
  12853. "definitions": {
  12854. "created_at": {
  12855. "description": "when invitation was created",
  12856. "example": "2012-01-01T12:00:00Z",
  12857. "format": "date-time",
  12858. "readOnly": true,
  12859. "type": [
  12860. "string"
  12861. ]
  12862. },
  12863. "identity": {
  12864. "anyOf": [
  12865. {
  12866. "$ref": "#/definitions/team-invitation/definitions/id"
  12867. }
  12868. ]
  12869. },
  12870. "id": {
  12871. "description": "unique identifier of an invitation",
  12872. "example": "01234567-89ab-cdef-0123-456789abcdef",
  12873. "format": "uuid",
  12874. "readOnly": true,
  12875. "type": [
  12876. "string"
  12877. ]
  12878. },
  12879. "token": {
  12880. "description": "special token for invitation",
  12881. "example": "614ae25aa2d4802096cd7c18625b526c",
  12882. "readOnly": true,
  12883. "type": [
  12884. "string"
  12885. ]
  12886. },
  12887. "updated_at": {
  12888. "description": "when invitation was updated",
  12889. "example": "2012-01-01T12:00:00Z",
  12890. "format": "date-time",
  12891. "readOnly": true,
  12892. "type": [
  12893. "string"
  12894. ]
  12895. }
  12896. },
  12897. "links": [
  12898. {
  12899. "description": "Get a list of a team's Identity Providers",
  12900. "title": "List",
  12901. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fname)}/invitations",
  12902. "method": "GET",
  12903. "rel": "instances",
  12904. "targetSchema": {
  12905. "items": {
  12906. "$ref": "#/definitions/team-invitation"
  12907. },
  12908. "type": [
  12909. "array"
  12910. ]
  12911. }
  12912. },
  12913. {
  12914. "description": "Create Team Invitation",
  12915. "title": "Create",
  12916. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/invitations",
  12917. "method": "PUT",
  12918. "rel": "update",
  12919. "schema": {
  12920. "properties": {
  12921. "email": {
  12922. "$ref": "#/definitions/account/definitions/email"
  12923. },
  12924. "role": {
  12925. "$ref": "#/definitions/team/definitions/role"
  12926. }
  12927. },
  12928. "required": [
  12929. "email",
  12930. "role"
  12931. ],
  12932. "type": [
  12933. "object"
  12934. ]
  12935. }
  12936. },
  12937. {
  12938. "description": "Revoke a team invitation.",
  12939. "title": "Revoke",
  12940. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/invitations/{(%23%2Fdefinitions%2Fteam-invitation%2Fdefinitions%2Fidentity)}",
  12941. "method": "DELETE",
  12942. "rel": "self"
  12943. },
  12944. {
  12945. "description": "Get an invitation by its token",
  12946. "title": "Get",
  12947. "href": "/teams/invitations/{(%23%2Fdefinitions%2Fteam-invitation%2Fdefinitions%2Ftoken)}",
  12948. "method": "GET",
  12949. "rel": "instances",
  12950. "targetSchema": {
  12951. "$ref": "#/definitions/team-invitation"
  12952. }
  12953. },
  12954. {
  12955. "description": "Accept Team Invitation",
  12956. "title": "Accept",
  12957. "href": "/teams/invitations/{(%23%2Fdefinitions%2Fteam-invitation%2Fdefinitions%2Ftoken)}/accept",
  12958. "method": "POST",
  12959. "rel": "create",
  12960. "targetSchema": {
  12961. "$ref": "#/definitions/team-member"
  12962. }
  12963. }
  12964. ],
  12965. "properties": {
  12966. "created_at": {
  12967. "$ref": "#/definitions/team-invitation/definitions/created_at"
  12968. },
  12969. "id": {
  12970. "$ref": "#/definitions/team-invitation/definitions/id"
  12971. },
  12972. "invited_by": {
  12973. "properties": {
  12974. "email": {
  12975. "$ref": "#/definitions/account/definitions/email"
  12976. },
  12977. "id": {
  12978. "$ref": "#/definitions/account/definitions/id"
  12979. },
  12980. "name": {
  12981. "$ref": "#/definitions/account/definitions/name"
  12982. }
  12983. },
  12984. "strictProperties": true,
  12985. "type": [
  12986. "object"
  12987. ]
  12988. },
  12989. "team": {
  12990. "properties": {
  12991. "id": {
  12992. "$ref": "#/definitions/team/definitions/id"
  12993. },
  12994. "name": {
  12995. "$ref": "#/definitions/team/definitions/name"
  12996. }
  12997. },
  12998. "strictProperties": true,
  12999. "type": [
  13000. "object"
  13001. ]
  13002. },
  13003. "role": {
  13004. "$ref": "#/definitions/team/definitions/role"
  13005. },
  13006. "updated_at": {
  13007. "$ref": "#/definitions/team-invitation/definitions/updated_at"
  13008. },
  13009. "user": {
  13010. "properties": {
  13011. "email": {
  13012. "$ref": "#/definitions/account/definitions/email"
  13013. },
  13014. "id": {
  13015. "$ref": "#/definitions/account/definitions/id"
  13016. },
  13017. "name": {
  13018. "$ref": "#/definitions/account/definitions/name"
  13019. }
  13020. },
  13021. "strictProperties": true,
  13022. "type": [
  13023. "object"
  13024. ]
  13025. }
  13026. }
  13027. },
  13028. "team-invoice": {
  13029. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  13030. "description": "A Team Invoice is an itemized bill of goods for a team which includes pricing and charges.",
  13031. "stability": "development",
  13032. "strictProperties": true,
  13033. "title": "Heroku Platform API - Team Invoice",
  13034. "type": [
  13035. "object"
  13036. ],
  13037. "definitions": {
  13038. "addons_total": {
  13039. "description": "total add-ons charges in on this invoice",
  13040. "example": 25000,
  13041. "readOnly": true,
  13042. "type": [
  13043. "integer"
  13044. ]
  13045. },
  13046. "database_total": {
  13047. "description": "total database charges on this invoice",
  13048. "example": 25000,
  13049. "readOnly": true,
  13050. "type": [
  13051. "integer"
  13052. ]
  13053. },
  13054. "charges_total": {
  13055. "description": "total charges on this invoice",
  13056. "example": 0,
  13057. "readOnly": true,
  13058. "type": [
  13059. "integer"
  13060. ]
  13061. },
  13062. "created_at": {
  13063. "description": "when invoice was created",
  13064. "example": "2012-01-01T12:00:00Z",
  13065. "format": "date-time",
  13066. "readOnly": true,
  13067. "type": [
  13068. "string"
  13069. ]
  13070. },
  13071. "credits_total": {
  13072. "description": "total credits on this invoice",
  13073. "example": 100000,
  13074. "readOnly": true,
  13075. "type": [
  13076. "integer"
  13077. ]
  13078. },
  13079. "dyno_units": {
  13080. "description": "total amount of dyno units consumed across dyno types.",
  13081. "example": 1.92,
  13082. "readOnly": true,
  13083. "type": [
  13084. "number"
  13085. ]
  13086. },
  13087. "id": {
  13088. "description": "unique identifier of this invoice",
  13089. "example": "01234567-89ab-cdef-0123-456789abcdef",
  13090. "format": "uuid",
  13091. "readOnly": true,
  13092. "type": [
  13093. "string"
  13094. ]
  13095. },
  13096. "identity": {
  13097. "anyOf": [
  13098. {
  13099. "$ref": "#/definitions/team-invoice/definitions/number"
  13100. }
  13101. ]
  13102. },
  13103. "number": {
  13104. "description": "human readable invoice number",
  13105. "example": 9403943,
  13106. "readOnly": true,
  13107. "type": [
  13108. "integer"
  13109. ]
  13110. },
  13111. "payment_status": {
  13112. "description": "status of the invoice payment",
  13113. "example": "Paid",
  13114. "readOnly": true,
  13115. "type": [
  13116. "string"
  13117. ]
  13118. },
  13119. "platform_total": {
  13120. "description": "total platform charges on this invoice",
  13121. "example": 50000,
  13122. "readOnly": true,
  13123. "type": [
  13124. "integer"
  13125. ]
  13126. },
  13127. "period_end": {
  13128. "description": "the ending date that the invoice covers",
  13129. "example": "01/31/2014",
  13130. "readOnly": true,
  13131. "type": [
  13132. "string"
  13133. ]
  13134. },
  13135. "period_start": {
  13136. "description": "the starting date that this invoice covers",
  13137. "example": "01/01/2014",
  13138. "readOnly": true,
  13139. "type": [
  13140. "string"
  13141. ]
  13142. },
  13143. "state": {
  13144. "description": "payment status for this invoice (pending, successful, failed)",
  13145. "example": 1,
  13146. "readOnly": true,
  13147. "type": [
  13148. "integer"
  13149. ]
  13150. },
  13151. "total": {
  13152. "description": "combined total of charges and credits on this invoice",
  13153. "example": 100000,
  13154. "readOnly": true,
  13155. "type": [
  13156. "integer"
  13157. ]
  13158. },
  13159. "updated_at": {
  13160. "description": "when invoice was updated",
  13161. "example": "2012-01-01T12:00:00Z",
  13162. "format": "date-time",
  13163. "readOnly": true,
  13164. "type": [
  13165. "string"
  13166. ]
  13167. },
  13168. "weighted_dyno_hours": {
  13169. "description": "The total amount of hours consumed across dyno types.",
  13170. "example": 1488,
  13171. "readOnly": true,
  13172. "type": [
  13173. "number"
  13174. ]
  13175. }
  13176. },
  13177. "links": [
  13178. {
  13179. "description": "Info for existing invoice.",
  13180. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/invoices/{(%23%2Fdefinitions%2Fteam-invoice%2Fdefinitions%2Fidentity)}",
  13181. "method": "GET",
  13182. "rel": "self",
  13183. "targetSchema": {
  13184. "$ref": "#/definitions/team-invoice"
  13185. },
  13186. "title": "Info"
  13187. },
  13188. {
  13189. "description": "List existing invoices.",
  13190. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/invoices",
  13191. "method": "GET",
  13192. "rel": "instances",
  13193. "targetSchema": {
  13194. "items": {
  13195. "$ref": "#/definitions/team-invoice"
  13196. },
  13197. "type": [
  13198. "array"
  13199. ]
  13200. },
  13201. "title": "List"
  13202. }
  13203. ],
  13204. "properties": {
  13205. "addons_total": {
  13206. "$ref": "#/definitions/team-invoice/definitions/addons_total"
  13207. },
  13208. "database_total": {
  13209. "$ref": "#/definitions/team-invoice/definitions/database_total"
  13210. },
  13211. "charges_total": {
  13212. "$ref": "#/definitions/team-invoice/definitions/charges_total"
  13213. },
  13214. "created_at": {
  13215. "$ref": "#/definitions/team-invoice/definitions/created_at"
  13216. },
  13217. "credits_total": {
  13218. "$ref": "#/definitions/team-invoice/definitions/credits_total"
  13219. },
  13220. "dyno_units": {
  13221. "$ref": "#/definitions/team-invoice/definitions/dyno_units"
  13222. },
  13223. "id": {
  13224. "$ref": "#/definitions/team-invoice/definitions/id"
  13225. },
  13226. "number": {
  13227. "$ref": "#/definitions/team-invoice/definitions/number"
  13228. },
  13229. "payment_status": {
  13230. "$ref": "#/definitions/team-invoice/definitions/payment_status"
  13231. },
  13232. "period_end": {
  13233. "$ref": "#/definitions/team-invoice/definitions/period_end"
  13234. },
  13235. "period_start": {
  13236. "$ref": "#/definitions/team-invoice/definitions/period_start"
  13237. },
  13238. "platform_total": {
  13239. "$ref": "#/definitions/team-invoice/definitions/platform_total"
  13240. },
  13241. "state": {
  13242. "$ref": "#/definitions/team-invoice/definitions/state"
  13243. },
  13244. "total": {
  13245. "$ref": "#/definitions/team-invoice/definitions/total"
  13246. },
  13247. "updated_at": {
  13248. "$ref": "#/definitions/team-invoice/definitions/updated_at"
  13249. },
  13250. "weighted_dyno_hours": {
  13251. "$ref": "#/definitions/team-invoice/definitions/weighted_dyno_hours"
  13252. }
  13253. }
  13254. },
  13255. "team-member": {
  13256. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  13257. "description": "A team member is an individual with access to a team.",
  13258. "stability": "development",
  13259. "additionalProperties": false,
  13260. "required": [
  13261. "created_at",
  13262. "email",
  13263. "federated",
  13264. "updated_at"
  13265. ],
  13266. "title": "Heroku Platform API - Team Member",
  13267. "type": [
  13268. "object"
  13269. ],
  13270. "definitions": {
  13271. "created_at": {
  13272. "description": "when the membership record was created",
  13273. "example": "2012-01-01T12:00:00Z",
  13274. "format": "date-time",
  13275. "readOnly": true,
  13276. "type": [
  13277. "string"
  13278. ]
  13279. },
  13280. "email": {
  13281. "description": "email address of the team member",
  13282. "example": "someone@example.org",
  13283. "readOnly": true,
  13284. "type": [
  13285. "string"
  13286. ]
  13287. },
  13288. "federated": {
  13289. "description": "whether the user is federated and belongs to an Identity Provider",
  13290. "example": false,
  13291. "readOnly": true,
  13292. "type": [
  13293. "boolean"
  13294. ]
  13295. },
  13296. "id": {
  13297. "description": "unique identifier of the team member",
  13298. "example": "01234567-89ab-cdef-0123-456789abcdef",
  13299. "format": "uuid",
  13300. "readOnly": true,
  13301. "type": [
  13302. "string"
  13303. ]
  13304. },
  13305. "identity": {
  13306. "anyOf": [
  13307. {
  13308. "$ref": "#/definitions/team-member/definitions/email"
  13309. },
  13310. {
  13311. "$ref": "#/definitions/team-member/definitions/id"
  13312. }
  13313. ]
  13314. },
  13315. "name": {
  13316. "description": "full name of the team member",
  13317. "example": "Tina Edmonds",
  13318. "readOnly": true,
  13319. "type": [
  13320. "string",
  13321. "null"
  13322. ]
  13323. },
  13324. "two_factor_authentication": {
  13325. "description": "whether the Enterprise team member has two factor authentication enabled",
  13326. "example": true,
  13327. "readOnly": true,
  13328. "type": [
  13329. "boolean"
  13330. ]
  13331. },
  13332. "updated_at": {
  13333. "description": "when the membership record was updated",
  13334. "example": "2012-01-01T12:00:00Z",
  13335. "format": "date-time",
  13336. "readOnly": true,
  13337. "type": [
  13338. "string"
  13339. ]
  13340. }
  13341. },
  13342. "links": [
  13343. {
  13344. "description": "Create a new team member, or update their role.",
  13345. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/members",
  13346. "method": "PUT",
  13347. "rel": "create",
  13348. "schema": {
  13349. "properties": {
  13350. "email": {
  13351. "$ref": "#/definitions/team-member/definitions/email"
  13352. },
  13353. "federated": {
  13354. "$ref": "#/definitions/team-member/definitions/federated"
  13355. },
  13356. "role": {
  13357. "$ref": "#/definitions/team/definitions/role"
  13358. }
  13359. },
  13360. "required": [
  13361. "email",
  13362. "role"
  13363. ],
  13364. "type": [
  13365. "object"
  13366. ]
  13367. },
  13368. "targetSchema": {
  13369. "$ref": "#/definitions/team-member"
  13370. },
  13371. "title": "Create or Update"
  13372. },
  13373. {
  13374. "description": "Create a new team member.",
  13375. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/members",
  13376. "method": "POST",
  13377. "rel": "create",
  13378. "schema": {
  13379. "properties": {
  13380. "email": {
  13381. "$ref": "#/definitions/team-member/definitions/email"
  13382. },
  13383. "federated": {
  13384. "$ref": "#/definitions/team-member/definitions/federated"
  13385. },
  13386. "role": {
  13387. "$ref": "#/definitions/team/definitions/role"
  13388. }
  13389. },
  13390. "required": [
  13391. "email",
  13392. "role"
  13393. ],
  13394. "type": [
  13395. "object"
  13396. ]
  13397. },
  13398. "targetSchema": {
  13399. "$ref": "#/definitions/team-member"
  13400. },
  13401. "title": "Create"
  13402. },
  13403. {
  13404. "description": "Update a team member.",
  13405. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/members",
  13406. "method": "PATCH",
  13407. "rel": "update",
  13408. "schema": {
  13409. "properties": {
  13410. "email": {
  13411. "$ref": "#/definitions/team-member/definitions/email"
  13412. },
  13413. "federated": {
  13414. "$ref": "#/definitions/team-member/definitions/federated"
  13415. },
  13416. "role": {
  13417. "$ref": "#/definitions/team/definitions/role"
  13418. }
  13419. },
  13420. "required": [
  13421. "email",
  13422. "role"
  13423. ],
  13424. "type": [
  13425. "object"
  13426. ]
  13427. },
  13428. "targetSchema": {
  13429. "$ref": "#/definitions/team-member"
  13430. },
  13431. "title": "update"
  13432. },
  13433. {
  13434. "description": "Remove a member from the team.",
  13435. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/members/{(%23%2Fdefinitions%2Fteam-member%2Fdefinitions%2Fidentity)}",
  13436. "method": "DELETE",
  13437. "rel": "destroy",
  13438. "targetSchema": {
  13439. "$ref": "#/definitions/team-member"
  13440. },
  13441. "title": "Delete"
  13442. },
  13443. {
  13444. "description": "List members of the team.",
  13445. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/members",
  13446. "method": "GET",
  13447. "ranges": [
  13448. "email"
  13449. ],
  13450. "rel": "instances",
  13451. "targetSchema": {
  13452. "items": {
  13453. "$ref": "#/definitions/team-member"
  13454. },
  13455. "type": [
  13456. "array"
  13457. ]
  13458. },
  13459. "title": "List"
  13460. },
  13461. {
  13462. "description": "List the apps of a team member.",
  13463. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/members/{(%23%2Fdefinitions%2Fteam-member%2Fdefinitions%2Fidentity)}/apps",
  13464. "method": "GET",
  13465. "rel": "instances",
  13466. "targetSchema": {
  13467. "items": {
  13468. "$ref": "#/definitions/team-app"
  13469. },
  13470. "type": [
  13471. "array"
  13472. ]
  13473. },
  13474. "title": "App List"
  13475. }
  13476. ],
  13477. "properties": {
  13478. "created_at": {
  13479. "$ref": "#/definitions/team-member/definitions/created_at"
  13480. },
  13481. "email": {
  13482. "$ref": "#/definitions/team-member/definitions/email"
  13483. },
  13484. "federated": {
  13485. "$ref": "#/definitions/team-member/definitions/federated"
  13486. },
  13487. "id": {
  13488. "$ref": "#/definitions/team-member/definitions/id"
  13489. },
  13490. "role": {
  13491. "$ref": "#/definitions/team/definitions/role"
  13492. },
  13493. "two_factor_authentication": {
  13494. "$ref": "#/definitions/team-member/definitions/two_factor_authentication"
  13495. },
  13496. "updated_at": {
  13497. "$ref": "#/definitions/team-member/definitions/updated_at"
  13498. },
  13499. "user": {
  13500. "description": "user information for the membership",
  13501. "properties": {
  13502. "email": {
  13503. "$ref": "#/definitions/account/definitions/email"
  13504. },
  13505. "id": {
  13506. "$ref": "#/definitions/account/definitions/id"
  13507. },
  13508. "name": {
  13509. "$ref": "#/definitions/account/definitions/name"
  13510. }
  13511. },
  13512. "strictProperties": true,
  13513. "type": [
  13514. "object"
  13515. ]
  13516. }
  13517. }
  13518. },
  13519. "team-preferences": {
  13520. "description": "Tracks a Team's Preferences",
  13521. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  13522. "stability": "development",
  13523. "strictProperties": true,
  13524. "title": "Heroku Platform API - Team Preferences",
  13525. "type": [
  13526. "object"
  13527. ],
  13528. "definitions": {
  13529. "default-permission": {
  13530. "description": "The default permission used when adding new members to the team",
  13531. "example": "member",
  13532. "readOnly": false,
  13533. "enum": [
  13534. "admin",
  13535. "member",
  13536. "viewer",
  13537. null
  13538. ],
  13539. "type": [
  13540. "null",
  13541. "string"
  13542. ]
  13543. },
  13544. "identity": {
  13545. "$ref": "#/definitions/team/definitions/identity"
  13546. },
  13547. "whitelisting-enabled": {
  13548. "description": "Whether whitelisting rules should be applied to add-on installations",
  13549. "example": true,
  13550. "readOnly": false,
  13551. "type": [
  13552. "boolean",
  13553. "null"
  13554. ]
  13555. }
  13556. },
  13557. "links": [
  13558. {
  13559. "description": "Retrieve Team Preferences",
  13560. "href": "/teams/{(%23%2Fdefinitions%2Fteam-preferences%2Fdefinitions%2Fidentity)}/preferences",
  13561. "method": "GET",
  13562. "rel": "self",
  13563. "targetSchema": {
  13564. "$ref": "#/definitions/team-preferences"
  13565. },
  13566. "title": "List"
  13567. },
  13568. {
  13569. "description": "Update Team Preferences",
  13570. "href": "/teams/{(%23%2Fdefinitions%2Fteam-preferences%2Fdefinitions%2Fidentity)}/preferences",
  13571. "method": "PATCH",
  13572. "rel": "update",
  13573. "schema": {
  13574. "type": [
  13575. "object"
  13576. ],
  13577. "properties": {
  13578. "whitelisting-enabled": {
  13579. "$ref": "#/definitions/team-preferences/definitions/whitelisting-enabled"
  13580. }
  13581. }
  13582. },
  13583. "targetSchema": {
  13584. "$ref": "#/definitions/team-preferences"
  13585. },
  13586. "title": "Update"
  13587. }
  13588. ],
  13589. "properties": {
  13590. "default-permission": {
  13591. "$ref": "#/definitions/team-preferences/definitions/default-permission"
  13592. },
  13593. "whitelisting-enabled": {
  13594. "$ref": "#/definitions/team-preferences/definitions/whitelisting-enabled"
  13595. }
  13596. }
  13597. },
  13598. "team": {
  13599. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  13600. "description": "Teams allow you to manage access to a shared group of applications and other resources.",
  13601. "stability": "development",
  13602. "strictProperties": true,
  13603. "title": "Heroku Platform API - Team",
  13604. "type": [
  13605. "object"
  13606. ],
  13607. "definitions": {
  13608. "created_at": {
  13609. "description": "when the team was created",
  13610. "example": "2012-01-01T12:00:00Z",
  13611. "format": "date-time",
  13612. "readOnly": true,
  13613. "type": [
  13614. "string"
  13615. ]
  13616. },
  13617. "credit_card_collections": {
  13618. "description": "whether charges incurred by the team are paid by credit card.",
  13619. "example": true,
  13620. "readOnly": true,
  13621. "type": [
  13622. "boolean"
  13623. ]
  13624. },
  13625. "default": {
  13626. "description": "whether to use this team when none is specified",
  13627. "example": true,
  13628. "readOnly": false,
  13629. "type": [
  13630. "boolean"
  13631. ]
  13632. },
  13633. "id": {
  13634. "description": "unique identifier of team",
  13635. "example": "01234567-89ab-cdef-0123-456789abcdef",
  13636. "format": "uuid",
  13637. "readOnly": true,
  13638. "type": [
  13639. "string"
  13640. ]
  13641. },
  13642. "identity": {
  13643. "anyOf": [
  13644. {
  13645. "$ref": "#/definitions/team/definitions/name"
  13646. },
  13647. {
  13648. "$ref": "#/definitions/team/definitions/id"
  13649. }
  13650. ]
  13651. },
  13652. "address_1": {
  13653. "type": [
  13654. "string"
  13655. ],
  13656. "description": "street address line 1",
  13657. "example": "40 Hickory Lane"
  13658. },
  13659. "address_2": {
  13660. "type": [
  13661. "string"
  13662. ],
  13663. "description": "street address line 2",
  13664. "example": "Suite 103"
  13665. },
  13666. "card_number": {
  13667. "type": [
  13668. "string"
  13669. ],
  13670. "description": "encrypted card number of payment method",
  13671. "example": "encrypted-card-number"
  13672. },
  13673. "city": {
  13674. "type": [
  13675. "string"
  13676. ],
  13677. "description": "city",
  13678. "example": "San Francisco"
  13679. },
  13680. "country": {
  13681. "type": [
  13682. "string"
  13683. ],
  13684. "description": "country",
  13685. "example": "US"
  13686. },
  13687. "cvv": {
  13688. "type": [
  13689. "string"
  13690. ],
  13691. "description": "card verification value",
  13692. "example": "123"
  13693. },
  13694. "expiration_month": {
  13695. "type": [
  13696. "string"
  13697. ],
  13698. "description": "expiration month",
  13699. "example": "11"
  13700. },
  13701. "expiration_year": {
  13702. "type": [
  13703. "string"
  13704. ],
  13705. "description": "expiration year",
  13706. "example": "2014"
  13707. },
  13708. "first_name": {
  13709. "type": [
  13710. "string"
  13711. ],
  13712. "description": "the first name for payment method",
  13713. "example": "Jason"
  13714. },
  13715. "last_name": {
  13716. "type": [
  13717. "string"
  13718. ],
  13719. "description": "the last name for payment method",
  13720. "example": "Walker"
  13721. },
  13722. "other": {
  13723. "type": [
  13724. "string"
  13725. ],
  13726. "description": "metadata",
  13727. "example": "Additional information for payment method"
  13728. },
  13729. "postal_code": {
  13730. "type": [
  13731. "string"
  13732. ],
  13733. "description": "postal code",
  13734. "example": "90210"
  13735. },
  13736. "state": {
  13737. "type": [
  13738. "string"
  13739. ],
  13740. "description": "state",
  13741. "example": "CA"
  13742. },
  13743. "membership_limit": {
  13744. "description": "upper limit of members allowed in a team.",
  13745. "example": 25,
  13746. "readOnly": true,
  13747. "type": [
  13748. "number",
  13749. "null"
  13750. ]
  13751. },
  13752. "name": {
  13753. "description": "unique name of team",
  13754. "example": "example",
  13755. "readOnly": true,
  13756. "type": [
  13757. "string"
  13758. ]
  13759. },
  13760. "provisioned_licenses": {
  13761. "description": "whether the team is provisioned licenses by salesforce.",
  13762. "example": true,
  13763. "readOnly": true,
  13764. "type": [
  13765. "boolean"
  13766. ]
  13767. },
  13768. "role": {
  13769. "description": "role in the team",
  13770. "enum": [
  13771. "admin",
  13772. "collaborator",
  13773. "member",
  13774. "owner",
  13775. null
  13776. ],
  13777. "example": "admin",
  13778. "readOnly": true,
  13779. "type": [
  13780. "null",
  13781. "string"
  13782. ]
  13783. },
  13784. "type": {
  13785. "description": "type of team.",
  13786. "example": "team",
  13787. "enum": [
  13788. "enterprise",
  13789. "team"
  13790. ],
  13791. "readOnly": true,
  13792. "type": [
  13793. "string"
  13794. ]
  13795. },
  13796. "updated_at": {
  13797. "description": "when the team was updated",
  13798. "example": "2012-01-01T12:00:00Z",
  13799. "format": "date-time",
  13800. "readOnly": true,
  13801. "type": [
  13802. "string"
  13803. ]
  13804. }
  13805. },
  13806. "links": [
  13807. {
  13808. "description": "List teams in which you are a member.",
  13809. "href": "/teams",
  13810. "method": "GET",
  13811. "rel": "instances",
  13812. "targetSchema": {
  13813. "items": {
  13814. "$ref": "#/definitions/team"
  13815. },
  13816. "type": [
  13817. "array"
  13818. ]
  13819. },
  13820. "title": "List"
  13821. },
  13822. {
  13823. "description": "Info for a team.",
  13824. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}",
  13825. "method": "GET",
  13826. "rel": "self",
  13827. "title": "Info"
  13828. },
  13829. {
  13830. "description": "Update team properties.",
  13831. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}",
  13832. "method": "PATCH",
  13833. "rel": "update",
  13834. "schema": {
  13835. "properties": {
  13836. "default": {
  13837. "$ref": "#/definitions/team/definitions/default"
  13838. },
  13839. "name": {
  13840. "$ref": "#/definitions/team/definitions/name"
  13841. }
  13842. },
  13843. "type": [
  13844. "object"
  13845. ]
  13846. },
  13847. "targetSchema": {
  13848. "$ref": "#/definitions/team"
  13849. },
  13850. "title": "Update"
  13851. },
  13852. {
  13853. "description": "Create a new team.",
  13854. "href": "/teams",
  13855. "method": "POST",
  13856. "rel": "create",
  13857. "schema": {
  13858. "properties": {
  13859. "name": {
  13860. "$ref": "#/definitions/team/definitions/name"
  13861. },
  13862. "address_1": {
  13863. "$ref": "#/definitions/team/definitions/address_1"
  13864. },
  13865. "address_2": {
  13866. "$ref": "#/definitions/team/definitions/address_2"
  13867. },
  13868. "card_number": {
  13869. "$ref": "#/definitions/team/definitions/card_number"
  13870. },
  13871. "city": {
  13872. "$ref": "#/definitions/team/definitions/city"
  13873. },
  13874. "country": {
  13875. "$ref": "#/definitions/team/definitions/country"
  13876. },
  13877. "cvv": {
  13878. "$ref": "#/definitions/team/definitions/cvv"
  13879. },
  13880. "expiration_month": {
  13881. "$ref": "#/definitions/team/definitions/expiration_month"
  13882. },
  13883. "expiration_year": {
  13884. "$ref": "#/definitions/team/definitions/expiration_year"
  13885. },
  13886. "first_name": {
  13887. "$ref": "#/definitions/team/definitions/first_name"
  13888. },
  13889. "last_name": {
  13890. "$ref": "#/definitions/team/definitions/last_name"
  13891. },
  13892. "other": {
  13893. "$ref": "#/definitions/team/definitions/other"
  13894. },
  13895. "postal_code": {
  13896. "$ref": "#/definitions/team/definitions/postal_code"
  13897. },
  13898. "state": {
  13899. "$ref": "#/definitions/team/definitions/state"
  13900. }
  13901. },
  13902. "required": [
  13903. "name"
  13904. ],
  13905. "type": [
  13906. "object"
  13907. ]
  13908. },
  13909. "targetSchema": {
  13910. "$ref": "#/definitions/team"
  13911. },
  13912. "title": "Create"
  13913. },
  13914. {
  13915. "description": "Delete an existing team.",
  13916. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}",
  13917. "method": "DELETE",
  13918. "rel": "destroy",
  13919. "targetSchema": {
  13920. "$ref": "#/definitions/team"
  13921. },
  13922. "title": "Delete"
  13923. }
  13924. ],
  13925. "properties": {
  13926. "id": {
  13927. "$ref": "#/definitions/team/definitions/id"
  13928. },
  13929. "created_at": {
  13930. "$ref": "#/definitions/team/definitions/created_at"
  13931. },
  13932. "credit_card_collections": {
  13933. "$ref": "#/definitions/team/definitions/credit_card_collections"
  13934. },
  13935. "default": {
  13936. "$ref": "#/definitions/team/definitions/default"
  13937. },
  13938. "membership_limit": {
  13939. "$ref": "#/definitions/team/definitions/membership_limit"
  13940. },
  13941. "name": {
  13942. "$ref": "#/definitions/team/definitions/name"
  13943. },
  13944. "provisioned_licenses": {
  13945. "$ref": "#/definitions/team/definitions/provisioned_licenses"
  13946. },
  13947. "role": {
  13948. "$ref": "#/definitions/team/definitions/role"
  13949. },
  13950. "type": {
  13951. "$ref": "#/definitions/team/definitions/type"
  13952. },
  13953. "updated_at": {
  13954. "$ref": "#/definitions/team/definitions/updated_at"
  13955. }
  13956. }
  13957. },
  13958. "user-preferences": {
  13959. "description": "Tracks a user's preferences and message dismissals",
  13960. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  13961. "stability": "production",
  13962. "strictProperties": true,
  13963. "title": "Heroku Platform API - User Preferences",
  13964. "type": [
  13965. "object"
  13966. ],
  13967. "definitions": {
  13968. "identity": {
  13969. "anyOf": [
  13970. {
  13971. "$ref": "#/definitions/user-preferences/definitions/self"
  13972. }
  13973. ]
  13974. },
  13975. "self": {
  13976. "description": "Implicit reference to currently authorized user",
  13977. "enum": [
  13978. "~"
  13979. ],
  13980. "example": "~",
  13981. "readOnly": true,
  13982. "type": [
  13983. "string"
  13984. ]
  13985. },
  13986. "timezone": {
  13987. "description": "User's default timezone",
  13988. "example": "UTC",
  13989. "readOnly": false,
  13990. "type": [
  13991. "string",
  13992. "null"
  13993. ]
  13994. },
  13995. "default-organization": {
  13996. "description": "User's default organization",
  13997. "example": "sushi-inc",
  13998. "readOnly": false,
  13999. "type": [
  14000. "string",
  14001. "null"
  14002. ]
  14003. },
  14004. "dismissed-github-banner": {
  14005. "description": "Whether the user has dismissed the GitHub link banner",
  14006. "example": true,
  14007. "readOnly": false,
  14008. "type": [
  14009. "boolean",
  14010. "null"
  14011. ]
  14012. },
  14013. "dismissed-getting-started": {
  14014. "description": "Whether the user has dismissed the getting started banner",
  14015. "example": true,
  14016. "readOnly": false,
  14017. "type": [
  14018. "boolean",
  14019. "null"
  14020. ]
  14021. },
  14022. "dismissed-org-access-controls": {
  14023. "description": "Whether the user has dismissed the Organization Access Controls banner",
  14024. "example": true,
  14025. "readOnly": false,
  14026. "type": [
  14027. "boolean",
  14028. "null"
  14029. ]
  14030. },
  14031. "dismissed-org-wizard-notification": {
  14032. "description": "Whether the user has dismissed the Organization Wizard",
  14033. "example": true,
  14034. "readOnly": false,
  14035. "type": [
  14036. "boolean",
  14037. "null"
  14038. ]
  14039. },
  14040. "dismissed-pipelines-banner": {
  14041. "description": "Whether the user has dismissed the Pipelines banner",
  14042. "example": true,
  14043. "readOnly": false,
  14044. "type": [
  14045. "boolean",
  14046. "null"
  14047. ]
  14048. },
  14049. "dismissed-pipelines-github-banner": {
  14050. "description": "Whether the user has dismissed the GitHub banner on a pipeline overview",
  14051. "example": true,
  14052. "readOnly": false,
  14053. "type": [
  14054. "boolean",
  14055. "null"
  14056. ]
  14057. },
  14058. "dismissed-pipelines-github-banners": {
  14059. "description": "Which pipeline uuids the user has dismissed the GitHub banner for",
  14060. "example": [
  14061. "96c68759-f310-4910-9867-e0b062064098"
  14062. ],
  14063. "readOnly": false,
  14064. "type": [
  14065. "null",
  14066. "array"
  14067. ],
  14068. "items": {
  14069. "$ref": "#/definitions/pipeline/definitions/id"
  14070. }
  14071. },
  14072. "dismissed-sms-banner": {
  14073. "description": "Whether the user has dismissed the 2FA SMS banner",
  14074. "example": true,
  14075. "readOnly": false,
  14076. "type": [
  14077. "boolean",
  14078. "null"
  14079. ]
  14080. }
  14081. },
  14082. "links": [
  14083. {
  14084. "description": "Retrieve User Preferences",
  14085. "href": "/users/{(%23%2Fdefinitions%2Fuser-preferences%2Fdefinitions%2Fidentity)}/preferences",
  14086. "method": "GET",
  14087. "rel": "self",
  14088. "targetSchema": {
  14089. "$ref": "#/definitions/user-preferences"
  14090. },
  14091. "title": "List"
  14092. },
  14093. {
  14094. "description": "Update User Preferences",
  14095. "href": "/users/{(%23%2Fdefinitions%2Fuser-preferences%2Fdefinitions%2Fidentity)}/preferences",
  14096. "method": "PATCH",
  14097. "rel": "update",
  14098. "schema": {
  14099. "type": [
  14100. "object"
  14101. ],
  14102. "properties": {
  14103. "timezone": {
  14104. "$ref": "#/definitions/user-preferences/definitions/timezone"
  14105. },
  14106. "default-organization": {
  14107. "$ref": "#/definitions/user-preferences/definitions/default-organization"
  14108. },
  14109. "dismissed-github-banner": {
  14110. "$ref": "#/definitions/user-preferences/definitions/dismissed-github-banner"
  14111. },
  14112. "dismissed-getting-started": {
  14113. "$ref": "#/definitions/user-preferences/definitions/dismissed-getting-started"
  14114. },
  14115. "dismissed-org-access-controls": {
  14116. "$ref": "#/definitions/user-preferences/definitions/dismissed-org-access-controls"
  14117. },
  14118. "dismissed-org-wizard-notification": {
  14119. "$ref": "#/definitions/user-preferences/definitions/dismissed-org-wizard-notification"
  14120. },
  14121. "dismissed-pipelines-banner": {
  14122. "$ref": "#/definitions/user-preferences/definitions/dismissed-pipelines-banner"
  14123. },
  14124. "dismissed-pipelines-github-banner": {
  14125. "$ref": "#/definitions/user-preferences/definitions/dismissed-pipelines-github-banner"
  14126. },
  14127. "dismissed-pipelines-github-banners": {
  14128. "$ref": "#/definitions/user-preferences/definitions/dismissed-pipelines-github-banners"
  14129. },
  14130. "dismissed-sms-banner": {
  14131. "$ref": "#/definitions/user-preferences/definitions/dismissed-sms-banner"
  14132. }
  14133. }
  14134. },
  14135. "targetSchema": {
  14136. "$ref": "#/definitions/user-preferences"
  14137. },
  14138. "title": "Update"
  14139. }
  14140. ],
  14141. "properties": {
  14142. "timezone": {
  14143. "$ref": "#/definitions/user-preferences/definitions/timezone"
  14144. },
  14145. "default-organization": {
  14146. "$ref": "#/definitions/user-preferences/definitions/default-organization"
  14147. },
  14148. "dismissed-github-banner": {
  14149. "$ref": "#/definitions/user-preferences/definitions/dismissed-github-banner"
  14150. },
  14151. "dismissed-getting-started": {
  14152. "$ref": "#/definitions/user-preferences/definitions/dismissed-getting-started"
  14153. },
  14154. "dismissed-org-access-controls": {
  14155. "$ref": "#/definitions/user-preferences/definitions/dismissed-org-access-controls"
  14156. },
  14157. "dismissed-org-wizard-notification": {
  14158. "$ref": "#/definitions/user-preferences/definitions/dismissed-org-wizard-notification"
  14159. },
  14160. "dismissed-pipelines-banner": {
  14161. "$ref": "#/definitions/user-preferences/definitions/dismissed-pipelines-banner"
  14162. },
  14163. "dismissed-pipelines-github-banner": {
  14164. "$ref": "#/definitions/user-preferences/definitions/dismissed-pipelines-github-banner"
  14165. },
  14166. "dismissed-pipelines-github-banners": {
  14167. "$ref": "#/definitions/user-preferences/definitions/dismissed-pipelines-github-banners"
  14168. },
  14169. "dismissed-sms-banner": {
  14170. "$ref": "#/definitions/user-preferences/definitions/dismissed-sms-banner"
  14171. }
  14172. }
  14173. },
  14174. "whitelisted-add-on-service": {
  14175. "description": "Entities that have been whitelisted to be used by an Organization",
  14176. "$schema": "http://json-schema.org/draft-04/hyper-schema",
  14177. "stability": "prototype",
  14178. "strictProperties": true,
  14179. "title": "Heroku Platform API - Whitelisted Entity",
  14180. "type": [
  14181. "object"
  14182. ],
  14183. "definitions": {
  14184. "added_at": {
  14185. "description": "when the add-on service was whitelisted",
  14186. "example": "2012-01-01T12:00:00Z",
  14187. "format": "date-time",
  14188. "readOnly": true,
  14189. "type": [
  14190. "string"
  14191. ]
  14192. },
  14193. "added_by": {
  14194. "description": "the user which whitelisted the Add-on Service",
  14195. "properties": {
  14196. "email": {
  14197. "$ref": "#/definitions/account/definitions/email",
  14198. "type": [
  14199. "string",
  14200. "null"
  14201. ]
  14202. },
  14203. "id": {
  14204. "$ref": "#/definitions/account/definitions/id",
  14205. "type": [
  14206. "string",
  14207. "null"
  14208. ]
  14209. }
  14210. },
  14211. "readOnly": true,
  14212. "type": [
  14213. "object"
  14214. ]
  14215. },
  14216. "addon_service": {
  14217. "description": "the Add-on Service whitelisted for use",
  14218. "properties": {
  14219. "id": {
  14220. "$ref": "#/definitions/add-on-service/definitions/id"
  14221. },
  14222. "name": {
  14223. "$ref": "#/definitions/add-on-service/definitions/name"
  14224. },
  14225. "human_name": {
  14226. "$ref": "#/definitions/add-on-service/definitions/human_name"
  14227. }
  14228. },
  14229. "readOnly": true,
  14230. "type": [
  14231. "object"
  14232. ]
  14233. },
  14234. "id": {
  14235. "description": "unique identifier for this whitelisting entity",
  14236. "example": "01234567-89ab-cdef-0123-456789abcdef",
  14237. "format": "uuid",
  14238. "readOnly": true,
  14239. "type": [
  14240. "string"
  14241. ]
  14242. },
  14243. "identity": {
  14244. "anyOf": [
  14245. {
  14246. "$ref": "#/definitions/whitelisted-add-on-service/definitions/id"
  14247. },
  14248. {
  14249. "$ref": "#/definitions/add-on-service/definitions/name"
  14250. }
  14251. ]
  14252. }
  14253. },
  14254. "links": [
  14255. {
  14256. "description": "List all whitelisted Add-on Services for an Organization",
  14257. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/whitelisted-addon-services",
  14258. "method": "GET",
  14259. "rel": "instances",
  14260. "targetSchema": {
  14261. "items": {
  14262. "$ref": "#/definitions/whitelisted-add-on-service"
  14263. },
  14264. "type": [
  14265. "array"
  14266. ]
  14267. },
  14268. "title": "List"
  14269. },
  14270. {
  14271. "description": "Whitelist an Add-on Service",
  14272. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/whitelisted-addon-services",
  14273. "method": "POST",
  14274. "rel": "create",
  14275. "schema": {
  14276. "type": [
  14277. "object"
  14278. ],
  14279. "properties": {
  14280. "addon_service": {
  14281. "description": "name of the Add-on to whitelist",
  14282. "example": "heroku-postgresql",
  14283. "type": [
  14284. "string"
  14285. ]
  14286. }
  14287. }
  14288. },
  14289. "targetSchema": {
  14290. "items": {
  14291. "$ref": "#/definitions/whitelisted-add-on-service"
  14292. },
  14293. "type": [
  14294. "array"
  14295. ]
  14296. },
  14297. "title": "Create"
  14298. },
  14299. {
  14300. "description": "Remove a whitelisted entity",
  14301. "href": "/organizations/{(%23%2Fdefinitions%2Forganization%2Fdefinitions%2Fidentity)}/whitelisted-addon-services/{(%23%2Fdefinitions%2Fwhitelisted-add-on-service%2Fdefinitions%2Fidentity)}",
  14302. "method": "DELETE",
  14303. "rel": "destroy",
  14304. "targetSchema": {
  14305. "$ref": "#/definitions/whitelisted-add-on-service"
  14306. },
  14307. "title": "Delete"
  14308. },
  14309. {
  14310. "description": "List all whitelisted Add-on Services for a Team",
  14311. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/whitelisted-addon-services",
  14312. "method": "GET",
  14313. "rel": "instances",
  14314. "targetSchema": {
  14315. "items": {
  14316. "$ref": "#/definitions/whitelisted-add-on-service"
  14317. },
  14318. "type": [
  14319. "array"
  14320. ]
  14321. },
  14322. "title": "List"
  14323. },
  14324. {
  14325. "description": "Whitelist an Add-on Service",
  14326. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/whitelisted-addon-services",
  14327. "method": "POST",
  14328. "rel": "create",
  14329. "schema": {
  14330. "type": [
  14331. "object"
  14332. ],
  14333. "properties": {
  14334. "addon_service": {
  14335. "description": "name of the Add-on to whitelist",
  14336. "example": "heroku-postgresql",
  14337. "type": [
  14338. "string"
  14339. ]
  14340. }
  14341. }
  14342. },
  14343. "targetSchema": {
  14344. "items": {
  14345. "$ref": "#/definitions/whitelisted-add-on-service"
  14346. },
  14347. "type": [
  14348. "array"
  14349. ]
  14350. },
  14351. "title": "Create"
  14352. },
  14353. {
  14354. "description": "Remove a whitelisted entity",
  14355. "href": "/teams/{(%23%2Fdefinitions%2Fteam%2Fdefinitions%2Fidentity)}/whitelisted-addon-services/{(%23%2Fdefinitions%2Fwhitelisted-add-on-service%2Fdefinitions%2Fidentity)}",
  14356. "method": "DELETE",
  14357. "rel": "destroy",
  14358. "targetSchema": {
  14359. "$ref": "#/definitions/whitelisted-add-on-service"
  14360. },
  14361. "title": "Delete"
  14362. }
  14363. ],
  14364. "properties": {
  14365. "added_at": {
  14366. "$ref": "#/definitions/whitelisted-add-on-service/definitions/added_at"
  14367. },
  14368. "added_by": {
  14369. "$ref": "#/definitions/whitelisted-add-on-service/definitions/added_by"
  14370. },
  14371. "addon_service": {
  14372. "$ref": "#/definitions/whitelisted-add-on-service/definitions/addon_service"
  14373. },
  14374. "id": {
  14375. "$ref": "#/definitions/whitelisted-add-on-service/definitions/id"
  14376. }
  14377. }
  14378. }
  14379. },
  14380. "properties": {
  14381. "account-feature": {
  14382. "$ref": "#/definitions/account-feature"
  14383. },
  14384. "account": {
  14385. "$ref": "#/definitions/account"
  14386. },
  14387. "add-on-action": {
  14388. "$ref": "#/definitions/add-on-action"
  14389. },
  14390. "add-on-attachment": {
  14391. "$ref": "#/definitions/add-on-attachment"
  14392. },
  14393. "add-on-config": {
  14394. "$ref": "#/definitions/add-on-config"
  14395. },
  14396. "add-on-plan-action": {
  14397. "$ref": "#/definitions/add-on-plan-action"
  14398. },
  14399. "add-on-region-capability": {
  14400. "$ref": "#/definitions/add-on-region-capability"
  14401. },
  14402. "add-on-service": {
  14403. "$ref": "#/definitions/add-on-service"
  14404. },
  14405. "add-on": {
  14406. "$ref": "#/definitions/add-on"
  14407. },
  14408. "app-feature": {
  14409. "$ref": "#/definitions/app-feature"
  14410. },
  14411. "app-formation-set": {
  14412. "$ref": "#/definitions/app-formation-set"
  14413. },
  14414. "app-setup": {
  14415. "$ref": "#/definitions/app-setup"
  14416. },
  14417. "app-transfer": {
  14418. "$ref": "#/definitions/app-transfer"
  14419. },
  14420. "app": {
  14421. "$ref": "#/definitions/app"
  14422. },
  14423. "build-result": {
  14424. "$ref": "#/definitions/build-result"
  14425. },
  14426. "build": {
  14427. "$ref": "#/definitions/build"
  14428. },
  14429. "buildpack-installation": {
  14430. "$ref": "#/definitions/buildpack-installation"
  14431. },
  14432. "collaborator": {
  14433. "$ref": "#/definitions/collaborator"
  14434. },
  14435. "config-var": {
  14436. "$ref": "#/definitions/config-var"
  14437. },
  14438. "credit": {
  14439. "$ref": "#/definitions/credit"
  14440. },
  14441. "domain": {
  14442. "$ref": "#/definitions/domain"
  14443. },
  14444. "dyno-size": {
  14445. "$ref": "#/definitions/dyno-size"
  14446. },
  14447. "dyno": {
  14448. "$ref": "#/definitions/dyno"
  14449. },
  14450. "event": {
  14451. "$ref": "#/definitions/event"
  14452. },
  14453. "failed-event": {
  14454. "$ref": "#/definitions/failed-event"
  14455. },
  14456. "filter-apps": {
  14457. "$ref": "#/definitions/filter-apps"
  14458. },
  14459. "formation": {
  14460. "$ref": "#/definitions/formation"
  14461. },
  14462. "identity-provider": {
  14463. "$ref": "#/definitions/identity-provider"
  14464. },
  14465. "inbound-ruleset": {
  14466. "$ref": "#/definitions/inbound-ruleset"
  14467. },
  14468. "invitation": {
  14469. "$ref": "#/definitions/invitation"
  14470. },
  14471. "invoice-address": {
  14472. "$ref": "#/definitions/invoice-address"
  14473. },
  14474. "invoice": {
  14475. "$ref": "#/definitions/invoice"
  14476. },
  14477. "key": {
  14478. "$ref": "#/definitions/key"
  14479. },
  14480. "log-drain": {
  14481. "$ref": "#/definitions/log-drain"
  14482. },
  14483. "log-session": {
  14484. "$ref": "#/definitions/log-session"
  14485. },
  14486. "oauth-authorization": {
  14487. "$ref": "#/definitions/oauth-authorization"
  14488. },
  14489. "oauth-client": {
  14490. "$ref": "#/definitions/oauth-client"
  14491. },
  14492. "oauth-grant": {
  14493. "$ref": "#/definitions/oauth-grant"
  14494. },
  14495. "oauth-token": {
  14496. "$ref": "#/definitions/oauth-token"
  14497. },
  14498. "organization-add-on": {
  14499. "$ref": "#/definitions/organization-add-on"
  14500. },
  14501. "organization-app-collaborator": {
  14502. "$ref": "#/definitions/organization-app-collaborator"
  14503. },
  14504. "organization-app": {
  14505. "$ref": "#/definitions/organization-app"
  14506. },
  14507. "organization-feature": {
  14508. "$ref": "#/definitions/organization-feature"
  14509. },
  14510. "organization-invitation": {
  14511. "$ref": "#/definitions/organization-invitation"
  14512. },
  14513. "organization-invoice": {
  14514. "$ref": "#/definitions/organization-invoice"
  14515. },
  14516. "organization-member": {
  14517. "$ref": "#/definitions/organization-member"
  14518. },
  14519. "organization-preferences": {
  14520. "$ref": "#/definitions/organization-preferences"
  14521. },
  14522. "organization": {
  14523. "$ref": "#/definitions/organization"
  14524. },
  14525. "outbound-ruleset": {
  14526. "$ref": "#/definitions/outbound-ruleset"
  14527. },
  14528. "password-reset": {
  14529. "$ref": "#/definitions/password-reset"
  14530. },
  14531. "organization-app-permission": {
  14532. "$ref": "#/definitions/organization-app-permission"
  14533. },
  14534. "pipeline-coupling": {
  14535. "$ref": "#/definitions/pipeline-coupling"
  14536. },
  14537. "pipeline-promotion-target": {
  14538. "$ref": "#/definitions/pipeline-promotion-target"
  14539. },
  14540. "pipeline-promotion": {
  14541. "$ref": "#/definitions/pipeline-promotion"
  14542. },
  14543. "pipeline": {
  14544. "$ref": "#/definitions/pipeline"
  14545. },
  14546. "plan": {
  14547. "$ref": "#/definitions/plan"
  14548. },
  14549. "rate-limit": {
  14550. "$ref": "#/definitions/rate-limit"
  14551. },
  14552. "region": {
  14553. "$ref": "#/definitions/region"
  14554. },
  14555. "release": {
  14556. "$ref": "#/definitions/release"
  14557. },
  14558. "slug": {
  14559. "$ref": "#/definitions/slug"
  14560. },
  14561. "sms-number": {
  14562. "$ref": "#/definitions/sms-number"
  14563. },
  14564. "sni-endpoint": {
  14565. "$ref": "#/definitions/sni-endpoint"
  14566. },
  14567. "source": {
  14568. "$ref": "#/definitions/source"
  14569. },
  14570. "space-app-access": {
  14571. "$ref": "#/definitions/space-app-access"
  14572. },
  14573. "space-nat": {
  14574. "$ref": "#/definitions/space-nat"
  14575. },
  14576. "space": {
  14577. "$ref": "#/definitions/space"
  14578. },
  14579. "ssl-endpoint": {
  14580. "$ref": "#/definitions/ssl-endpoint"
  14581. },
  14582. "stack": {
  14583. "$ref": "#/definitions/stack"
  14584. },
  14585. "team-app-collaborator": {
  14586. "$ref": "#/definitions/team-app-collaborator"
  14587. },
  14588. "team-app-permission": {
  14589. "$ref": "#/definitions/team-app-permission"
  14590. },
  14591. "team-app": {
  14592. "$ref": "#/definitions/team-app"
  14593. },
  14594. "team-feature": {
  14595. "$ref": "#/definitions/team-feature"
  14596. },
  14597. "team-invitation": {
  14598. "$ref": "#/definitions/team-invitation"
  14599. },
  14600. "team-invoice": {
  14601. "$ref": "#/definitions/team-invoice"
  14602. },
  14603. "team-member": {
  14604. "$ref": "#/definitions/team-member"
  14605. },
  14606. "team-preferences": {
  14607. "$ref": "#/definitions/team-preferences"
  14608. },
  14609. "team": {
  14610. "$ref": "#/definitions/team"
  14611. },
  14612. "user-preferences": {
  14613. "$ref": "#/definitions/user-preferences"
  14614. },
  14615. "whitelisted-add-on-service": {
  14616. "$ref": "#/definitions/whitelisted-add-on-service"
  14617. }
  14618. },
  14619. "description": "The platform API empowers developers to automate, extend and combine Heroku with other services.",
  14620. "id": "http://api.heroku.com/schema#",
  14621. "links": [
  14622. {
  14623. "href": "https://api.heroku.com",
  14624. "rel": "self"
  14625. },
  14626. {
  14627. "href": "/schema",
  14628. "method": "GET",
  14629. "rel": "self",
  14630. "targetSchema": {
  14631. "additionalProperties": true
  14632. }
  14633. }
  14634. ],
  14635. "title": "Heroku Platform API"
  14636. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement