| 563 | |
| 564 | |
| 565 | === Manipulating Profile Attributes === |
| 566 | |
| 567 | Administrators may add attributes to project profiles or remove them. That is to say, add a schema (including format constraints and descriptions), not set a value for a project. |
| 568 | |
| 569 | Creating an attribute: |
| 570 | |
| 571 | * '''Service:''' Projects |
| 572 | * '''Operation:''' createProjectAttribute |
| 573 | * '''Input Parameters:''' |
| 574 | * Name - the attribute name |
| 575 | * Type - the type (STRING, INT, FLOAT, OPAQUE) |
| 576 | * Optional - a boolean, true if this attribute is optional |
| 577 | * Access - an integer the user's ability to modify (READ_WRITE, READ_ONLY, WRITE_ONLY, NO_ACCESS) |
| 578 | * Description - natural language description of the field (optional) |
| 579 | * Format - a regular expression describing the format (optional) |
| 580 | * Formatdescription - a natural language explanation of the format (optional) |
| 581 | * OrderingHint - an integer suggesting where to present the attribute. Lower numbers come first |
| 582 | * LengthHint - an integer suggesting how long an input |
| 583 | * Def - default value of the attribute (will be set for all users) |
| 584 | * '''Return Values:''' |
| 585 | * a boolean, true if the attribute was created |
| 586 | |
| 587 | And removing an attribute: |
| 588 | |
| 589 | * '''Service:''' Projects |
| 590 | * '''Operation:''' removeProjectAttribute |
| 591 | * '''Input Parameters:''' |
| 592 | * Name - the attribute name |
| 593 | * '''Return Values:''' |
| 594 | * a boolean, true if the attribute was removed |