shamrickus commented on a change in pull request #4406: Only allow changing of 
types based on useintable
URL: https://github.com/apache/trafficcontrol/pull/4406#discussion_r387698485
 
 

 ##########
 File path: docs/source/api/v2/types.rst
 ##########
 @@ -82,3 +82,77 @@ Response Structure
                        "useInTable": "cachegroup"
                }
        ]}
+
+
+``POST``
+========
+Creates a type
+
+:Auth. Required: Yes
+:Roles Required: None
+:Response Type:  Object
+
+Request Structure
+-----------------
+:description: A short description of this type
+:name:        The name of this type
+:useInTable:  The name of the Traffic Ops database table that contains objects 
which are grouped, identified, or described by this type.
+.. note:: The only useInTable value that is allowed to be created dynamically 
is 'server'
+
+.. code-block:: http
+       :caption: Request Structure
+
+       POST /api/2.0/type
+       Host: trafficops.infra.ciab.test
+       User-Agent: curl/7.47.0
+       Accept: */*
+       Cookie: mojolicious=...
+       Content-Length: 67
+       Content-Type: application/json
+
+       {
+               "name": "Example01",
+               "description": "Example",
+               "useInServer": "server"
 
 Review comment:
   Woops

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to